summaryrefslogtreecommitdiffstats
path: root/drivers/hid/hid-ids.h
diff options
context:
space:
mode:
authorSalah Triki <salah.triki@gmail.com>2021-07-29 01:45:12 +0100
committerJiri Kosina <jkosina@suse.cz>2021-08-20 14:22:28 +0200
commitfbf42729d0e91332e8ce75a1ecce08b8a2dab9c1 (patch)
tree118a2dc7798df202c3cdcbf20d038f19e509daca /drivers/hid/hid-ids.h
parentdb8d3a21275c807a4047a21bde3b57d49ca55d82 (diff)
downloadlinux-stable-fbf42729d0e91332e8ce75a1ecce08b8a2dab9c1.tar.gz
linux-stable-fbf42729d0e91332e8ce75a1ecce08b8a2dab9c1.tar.bz2
linux-stable-fbf42729d0e91332e8ce75a1ecce08b8a2dab9c1.zip
HID: elo: update the reference count of the usb device structure
Use usb_get_dev() to increment the reference count of the usb device structure in order to avoid releasing the structure while it is still in use. And use usb_put_dev() to decrement the reference count and thus, when it will be equal to 0 the structure will be released. Signed-off-by: Salah Triki <salah.triki@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/hid-ids.h')
0 files changed, 0 insertions, 0 deletions