We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10e0f28 commit 985a70aCopy full SHA for 985a70a
components/drivers/usb/usbhost/core/hub.c
@@ -508,6 +508,7 @@ static rt_err_t rt_usbh_hub_enable(void *arg)
508
509
/* create a hub instance */
510
hub = rt_malloc(sizeof(struct uhub));
511
+ RT_ASSERT(hub != RT_NULL);
512
rt_memset(hub, 0, sizeof(struct uhub));
513
514
/* make interface instance's user data point to hub instance */
0 commit comments