On Wed, 9 Sep 2020 19:58:55 +0100, Alex Dewar wrote:
> kmemdup can be used instead of kmalloc+memcpy. Replace two occurrences
> of this pattern.
>
> Issue identified with Coccinelle.
Applied to 5.10/scsi-queue, thanks!
[1/1] scsi: aic7xxx: Use kmemdup() in two places
https://git.kernel.or
Alex,
> kmemdup can be used instead of kmalloc+memcpy. Replace two occurrences
> of this pattern.
>
> Issue identified with Coccinelle.
Applied to 5.10/scsi-staging, thanks!
--
Martin K. Petersen Oracle Linux Engineering
kmemdup can be used instead of kmalloc+memcpy. Replace two occurrences
of this pattern.
Issue identified with Coccinelle.
Signed-off-by: Alex Dewar
---
drivers/scsi/aic7xxx/aic79xx_core.c | 3 +--
drivers/scsi/aic7xxx/aic7xxx_core.c | 3 +--
2 files changed, 2 insertions(+), 4 deletions(-)
dif
3 matches
Mail list logo