Thread (2 messages) 2 messages, 2 authors, 2021-08-20

Re: [RESEND v2] hid-elo: update the reference count of the usb device structure

flat view

From: Jiri Kosina <jikos@kernel.org>
Date: 2021-08-20 12:23:04
Also in: lkml

On Thu, 29 Jul 2021, Salah Triki wrote:
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.
Applied, thanks for spotting this.

-- 
Jiri Kosina
SUSE Labs
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help