summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMyeonghun Pak <mhun512@gmail.com>2026-04-24 22:21:31 +0900
committerBenjamin Tissoires <bentiss@kernel.org>2026-05-21 15:47:17 +0200
commit2e78b21864dd6e21b76160753ea632b5e758fdbd (patch)
tree9e271f4d155418f9e93fe8dc4b8a0417a135add7 /include
parent64ffa2e5e02ff54b23221d0282155f37283fabea (diff)
HID: u2fzero: free allocated URB on probe errors
u2fzero_fill_in_urb() allocates dev->urb with usb_alloc_urb(), but u2fzero_probe() ignored its return value and only freed the URB from u2fzero_remove(). If LED or hwrng registration fails after the URB allocation, probe returns an error and the driver core does not call .remove(), leaking the URB. A failed URB setup was also allowed to continue probing with an unusable device. Check the URB setup result and add the missing probe-error unwind so the URB is freed before returning from later errors. Signed-off-by: Myeonghun Pak <mhun512@gmail.com> Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions