On Wed, 7 Jan 2015, Akinobu Mita wrote:

> While accessing a unusual usb storage (ums-alauda, ums-cypress, ...),
> the module reference count is not incremented.  Because these drivers
> allocate scsi hosts with usb_stor_host_template defined in usb-storage
> module.  So these drivers always can be unloaded.
> 
> This fixes it by passing correct module reference to usb_stor_probe1() to
> adjust it after scsi host allocation.
> 
> Signed-off-by: Akinobu Mita <akinobu.m...@gmail.com>
> Cc: Matthew Dharm <mdharm-...@one-eyed-alien.net>
> Cc: Greg Kroah-Hartman <gre...@linuxfoundation.org>
> Cc: Alan Stern <st...@rowland.harvard.edu>
> Cc: Christoph Hellwig <h...@lst.de>
> Cc: "James E.J. Bottomley" <jbottom...@parallels.com>
> Cc: linux-usb@vger.kernel.org
> Cc: usb-stor...@lists.one-eyed-alien.net
> Cc: linux-s...@vger.kernel.org
> ---
> * v2:
> - Pass correct module reference to usb_stor_probe1() instead of touching
>   all ums-* drivers, suggested by Alan Stern

Acked-by: Alan Stern <st...@rowland.harvard.edu>

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to