Skip to content

Commit ff30732

Browse files
heatdmartinkpetersen
authored andcommitted
scsi: snic: Avoid creating two slab caches with the same name
In the spirit of [1], fix the copy-paste typo and use unique names for both caches. [1]: https://lore.kernel.org/all/[email protected]/ Signed-off-by: Pedro Falcato <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Martin K. Petersen <[email protected]>
1 parent eab0dce commit ff30732

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/scsi/snic/snic_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -873,7 +873,7 @@ snic_global_data_init(void)
873873
snic_glob->req_cache[SNIC_REQ_CACHE_MAX_SGL] = cachep;
874874

875875
len = sizeof(struct snic_host_req);
876-
cachep = kmem_cache_create("snic_req_maxsgl", len, SNIC_SG_DESC_ALIGN,
876+
cachep = kmem_cache_create("snic_req_tm", len, SNIC_SG_DESC_ALIGN,
877877
SLAB_HWCACHE_ALIGN, NULL);
878878
if (!cachep) {
879879
SNIC_ERR("Failed to create snic tm req slab\n");

0 commit comments

Comments
 (0)