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.mita@xxxxxxxxx> > Cc: Matthew Dharm <mdharm-usb@xxxxxxxxxxxxxxxxxx> > Cc: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> > Cc: Alan Stern <stern@xxxxxxxxxxxxxxxxxxx> > Cc: Christoph Hellwig <hch@xxxxxx> > Cc: "James E.J. Bottomley" <JBottomley@xxxxxxxxxxxxx> > Cc: linux-usb@xxxxxxxxxxxxxxx > Cc: usb-storage@xxxxxxxxxxxxxxxxxxxxxxxx > Cc: linux-scsi@xxxxxxxxxxxxxxx > --- > * v2: > - Pass correct module reference to usb_stor_probe1() instead of touching > all ums-* drivers, suggested by Alan Stern Acked-by: Alan Stern <stern@xxxxxxxxxxxxxxxxxxx> -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html