*udc* allocated in usb_add_gadget_udc() is not freed in error path. Fixed the same. Signed-off-by: Kishon Vijay Abraham I <kishon@xxxxxx> --- drivers/usb/gadget/udc-core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/gadget/udc-core.c b/drivers/usb/gadget/udc-core.c index bae243c..12186d8 100644 --- a/drivers/usb/gadget/udc-core.c +++ b/drivers/usb/gadget/udc-core.c @@ -240,6 +240,7 @@ err3: err2: put_device(&udc->dev); + kfree(udc); err1: return ret; -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html