summaryrefslogtreecommitdiff
path: root/drivers/pinctrl/uniphier/pinctrl-uniphier-nx1.c
diff options
context:
space:
mode:
authorJiri Kosina <jkosina@suse.cz>2022-02-17 16:13:49 +0300
committerJiri Kosina <jkosina@suse.cz>2022-02-17 16:14:41 +0300
commitac89895213d8950dba6ab342863a0959f73142a7 (patch)
tree845a24931d6171f555e5d3b8ae7076643cb8efdd /drivers/pinctrl/uniphier/pinctrl-uniphier-nx1.c
parent0a5a587501b54e8c6d86960b047d4491fd40dcf2 (diff)
downloadlinux-ac89895213d8950dba6ab342863a0959f73142a7.tar.xz
HID: elo: Revert USB reference counting
Commit 817b8b9c539 ("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: Alan Stern <stern@rowland.harvard.edu> Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Fixes: fbf42729d0e ("HID: elo: update the reference count of the usb device structure") Fixes: 817b8b9c539 ("HID: elo: fix memory leak in elo_probe") Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/pinctrl/uniphier/pinctrl-uniphier-nx1.c')
0 files changed, 0 insertions, 0 deletions