On Wed, 6 May 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 preparing scsi host template which is initialized
> at module_init() for each ums-* driver.  In order to minimize the
> difference in ums-* drivers, introduce module_usb_stor_driver() helper
> macro which is same as module_usb_driver() except that it also
> initializes scsi host template.
> 
> Signed-off-by: Akinobu Mita <akinobu.m...@gmail.com>

This looks very good.

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

--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" 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