On 01/11/2015 02:50 PM, Akinobu Mita wrote:
> While accessing a scsi device on host adapter supported by sub driver for
> the ESP chip (mac_esp, am53c974, sun_esp, jazz_esp, sun3x_esp), the module
> reference count is not incremented.  Because these drivers allocate scsi
> hosts with scsi_esp_template defined in ESP SCSI driver core module.  So
> these drivers always can be unloaded.
> 
> This fixes it by passing correct module reference to newly introduced
> scsi_esp_host_alloc() so that .module field in struct Scsi_Host can be
> adjusted.
> 
> Signed-off-by: Akinobu Mita <akinobu.m...@gmail.com>
> Cc: "David S. Miller" <da...@davemloft.net>
> Cc: Hannes Reinecke <h...@suse.de>
> Cc: Christoph Hellwig <h...@lst.de>
> Cc: "James E.J. Bottomley" <jbottom...@parallels.com>
> Cc: linux-scsi@vger.kernel.org
> ---
> New patch from v3
> 
Reviewed-by: Hannes Reinecke <h...@suse.de>

Cheers,

Hannes
-- 
Dr. Hannes Reinecke                            zSeries & Storage
h...@suse.de                                   +49 911 74053 688
SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: F. Imendörffer, J. Smithard, J. Guild, D. Upmanyu, G. Norton
HRB 21284 (AG Nürnberg)
--
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