[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210804110313.GF1931@kadam>
Date: Wed, 4 Aug 2021 14:03:13 +0300
From: Dan Carpenter <dan.carpenter@...cle.com>
To: Salah Triki <salah.triki@...il.com>
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Fabio Aiuto <fabioaiuto83@...il.com>,
Ross Schmidt <ross.schm.dev@...il.com>,
Marco Cesati <marcocesati@...il.com>,
Brother Matthew De Angelis <matthew.v.deangelis@...il.com>,
"Gustavo A. R. Silva" <gustavoars@...nel.org>,
Ivan Safonov <insafonov@...il.com>,
linux-staging@...ts.linux.dev, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] tablet: acecad: update the reference count of the usb
interface structure
On Sat, Jul 31, 2021 at 05:09:38PM +0100, Salah Triki wrote:
> Based on the following documentation usb_get_inf(), use usb_get_intf()
> and usb_put_intf() in order to update the reference count of the usb
> interface structure.
>
> Documentation of usb_get_inf():
>
> [quote]
> Each live reference to a interface must be refcounted.
>
> Drivers for USB interfaces should normally record such references
> in their probe methods, when they bind to an interface, and release them
> by calling usb_put_intf, in their disconnect methods.
> [/quote]
>
> Signed-off-by: Salah Triki <salah.triki@...il.com>
Also add a Fixes tag.
regards,
dan carpenter
Powered by blists - more mailing lists