When an error happens in mctp_usb_probe() the reference count on the usb interface structure needs to be properly dropped as it was incremented earlier in the function. Cc: Jeremy Kerr Cc: Matt Johnston Cc: stable Assisted-by: gkh_clanker_2000 Signed-off-by: Greg Kroah-Hartman --- drivers/net/mctp/mctp-usb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/mctp/mctp-usb.c b/drivers/net/mctp/mctp-usb.c index ef860cfc629f..eef17ae89298 100644 --- a/drivers/net/mctp/mctp-usb.c +++ b/drivers/net/mctp/mctp-usb.c @@ -355,6 +355,7 @@ static int mctp_usb_probe(struct usb_interface *intf, usb_free_urb(dev->tx_urb); usb_free_urb(dev->rx_urb); free_netdev(netdev); + usb_put_dev(dev->usbdev); return rc; } -- 2.53.0