Skip to content
Commit fbf42729 authored by Salah Triki's avatar Salah Triki Committed by Jiri Kosina
Browse files

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: default avatarSalah Triki <salah.triki@gmail.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent db8d3a21
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