From: James Bottomley Date: Sat, 26 Jul 2014 16:21:26 +0000 (-0400) Subject: scsi: use short driver name for per-driver cmd slab caches X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=884ffee01ddde5af260c7a5d1359c658aa1f0a11;p=linux-beck.git scsi: use short driver name for per-driver cmd slab caches hostt->name might contain space, so use the ->proc_name short name instead when creating per-driver command slabs. Signed-off-by: James Bottomley Reported-by: poma Tested-by: poma Reviewed-by: Vladimir Davydov Reviewed-by: Martin K. Petersen Cc: stable@vger.kernel.org Signed-off-by: Christoph Hellwig --- diff --git a/drivers/scsi/scsi.c b/drivers/scsi/scsi.c index 33318f5ebb4b..df3306019a7e 100644 --- a/drivers/scsi/scsi.c +++ b/drivers/scsi/scsi.c @@ -365,8 +365,8 @@ scsi_alloc_host_cmd_pool(struct Scsi_Host *shost) if (!pool) return NULL; - pool->cmd_name = kasprintf(GFP_KERNEL, "%s_cmd", hostt->name); - pool->sense_name = kasprintf(GFP_KERNEL, "%s_sense", hostt->name); + pool->cmd_name = kasprintf(GFP_KERNEL, "%s_cmd", hostt->proc_name); + pool->sense_name = kasprintf(GFP_KERNEL, "%s_sense", hostt->proc_name); if (!pool->cmd_name || !pool->sense_name) { scsi_free_host_cmd_pool(pool); return NULL;