Unverified Commit 49c33b7b authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!15688 usb: usbip: fix a refcount leak in stub_probe()

parents 627f77ce 23b2c9f7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -410,7 +410,6 @@ static int stub_probe(struct usb_device *udev)
			     (struct usb_dev_state *) udev);
err_port:
	dev_set_drvdata(&udev->dev, NULL);
	usb_put_dev(udev);

	/* we already have busid_priv, just lock busid_lock */
	spin_lock(&busid_priv->busid_lock);
@@ -425,6 +424,7 @@ static int stub_probe(struct usb_device *udev)
	put_busid_priv(busid_priv);

sdev_free:
	usb_put_dev(udev);
	stub_device_free(sdev);

	return rc;