]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
usb: misc: uss720: properly clean up reference in uss720_probe()
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 23 Feb 2026 12:19:43 +0000 (13:19 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 11 Mar 2026 15:17:12 +0000 (16:17 +0100)
commit45dba8011efac11a2f360383221b541f5ea53ce5
tree2772332d1d3f71a914974f46e2e76f615d9af6e2
parent1015c27a5e1a63efae2b18a9901494474b4d1dc3
usb: misc: uss720: properly clean up reference in uss720_probe()

If get_1284_register() fails, the usb device reference count is
incorrect and needs to be properly dropped before returning.  That will
happen when the kref is dropped in the call to destroy_priv(), so jump
to that error path instead of returning directly.

Cc: stable <stable@kernel.org>
Assisted-by: gkh_clanker_2000
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://patch.msgid.link/2026022342-smokiness-stove-d792@gregkh
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/misc/uss720.c