[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <nycvar.YFH.7.76.2108201422490.15313@cbobk.fhfr.pm>
Date: Fri, 20 Aug 2021 14:22:59 +0200 (CEST)
From: Jiri Kosina <jikos@...nel.org>
To: Salah Triki <salah.triki@...il.com>
cc: Benjamin Tissoires <benjamin.tissoires@...hat.com>,
gregkh@...uxfoundation.org, linux-input@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [RESEND v2] hid-elo: update the reference count of the usb device
structure
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
Powered by blists - more mailing lists