Re: [PATCH v2] tablet: acecad: update the reference count of the usb interface structure

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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





[Index of Archives]     [Linux Driver Development]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux