Message ID | alpine.DEB.2.22.394.2101211907060.14700@hadrien (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | usb: gadget: aspeed: add missing of_node_put | expand |
--- a/drivers/usb/gadget/udc/aspeed-vhub/hub.c +++ b/drivers/usb/gadget/udc/aspeed-vhub/hub.c @@ -999,8 +999,10 @@ static int ast_vhub_of_parse_str_desc(st str_array[offset].s = NULL; ret = ast_vhub_str_alloc_add(vhub, &lang_str); - if (ret) + if (ret) { + of_node_put(child); break; + } } return ret;