Skip to content
Commit ac898952 authored by Jiri Kosina's avatar Jiri Kosina
Browse files

HID: elo: Revert USB reference counting



Commit 817b8b9c ("HID: elo: fix memory leak in elo_probe") introduced
memory leak on error path, but more importantly the whole USB reference
counting is not needed at all in the first place, as the driver itself
doesn't change the reference counting in any way, and the associated
usb_device is guaranteed to be kept around by USB core as long as the
driver binding exists.

Reported-by: default avatarAlan Stern <stern@rowland.harvard.edu>
Reported-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Fixes: fbf42729 ("HID: elo: update the reference count of the usb device structure")
Fixes: 817b8b9c ("HID: elo: fix memory leak in elo_probe")
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent 0a5a5875
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment