> "Muhammad" == Muhammad Falak R Wani writes:
Muhammad> Use kmemdup when some other buffer is immediately copied into
Muhammad> allocated region. It replaces call to allocation followed by
Muhammad> memcpy, by a single call to kmemdup.
Applied to 4.8/scsi-queue.
--
Martin K. Petersen
Petersen;
> linux-scsi@vger.kernel.org; linux-ker...@vger.kernel.org
> Subject: [PATCH] [SCSI] aacraid: use kmemdup
>
> EXTERNAL EMAIL
>
>
> Use kmemdup when some other buffer is immediately copied into allocated
> region. It replaces call to allocation followed by memcpy,
Use kmemdup when some other buffer is immediately copied into allocated
region. It replaces call to allocation followed by memcpy, by a single
call to kmemdup.
Signed-off-by: Muhammad Falak R Wani
---
drivers/scsi/aacraid/commctrl.c | 7 +++
1 file changed, 3 insertions(+), 4 deletions(-)
d
3 matches
Mail list logo