[PATCH] drivers: scsi: aic7xxx: made use of kmemdup

2019-09-14 Thread aliasgar . surti500
From: Aliasgar Surti There is usage of kmalloc following memcpy in this driver file. Instead of using these functions, this change is made to use kmemdup which has the same functionality. Signed-off-by: Aliasgar Surti --- drivers/scsi/aic7xxx/aic79xx_core.c | 4 ++-- 1 file changed, 2 inserti

[PATCH] drivers: scsi: aic7xxx: made use of kmemdup instead of kmalloc

2019-09-14 Thread aliasgar . surti500
From: Aliasgar Surti There is usage of kmalloc following memcpy in this driver file. Instead of using these functions, this change is made to use kmemdup which has the same functionality. Signed-off-by: Aliasgar Surti --- drivers/scsi/aic7xxx/aic7xxx_core.c | 4 ++-- 1 file changed, 2 inserti