mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
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 <[email protected]> Reported-by: poma <[email protected]> Tested-by: poma <[email protected]> Reviewed-by: Vladimir Davydov <[email protected]> Reviewed-by: Martin K. Petersen <[email protected]> Cc: [email protected] Signed-off-by: Christoph Hellwig <[email protected]>
This commit is contained in:
parent
16acf5d786
commit
884ffee01d
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue