Re: [PATCH v2] tablet: acecad: update the reference count of the usb interface structure
From: Dan Carpenter
Date: Wed Aug 04 2021 - 07:03:51 EST
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@xxxxxxxxx>
Also add a Fixes tag.
regards,
dan carpenter