From 00d78a51e4d85a85f75293447f76d591e4c88f9b Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Sun, 23 Oct 2022 23:30:16 +0800 Subject: [PATCH] Fix usbhost/usbhost_hub.c:1339:3: error: 'free' called on pointer 'alloc' with nonzero offset 12 [-Werror=free-nonheap-object] Signed-off-by: Xiang Xiao --- drivers/usbhost/usbhost_hub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usbhost/usbhost_hub.c b/drivers/usbhost/usbhost_hub.c index d2b0972d85..a83fb95d9a 100644 --- a/drivers/usbhost/usbhost_hub.c +++ b/drivers/usbhost/usbhost_hub.c @@ -1336,7 +1336,7 @@ errout_with_ctrlreq: kmm_free(priv->ctrlreq); errout_with_hub: - kmm_free(priv); + kmm_free(alloc); return NULL; }