Re: [PATCH] fs/omfs: make use of kmemdup

From: Bob Copeland
Date: Mon Jul 22 2019 - 09:15:19 EST


On Sun, Jul 21, 2019 at 04:53:27PM +0530, Hariprasad Kelam wrote:
> kmalloc + memcpy can be replaced with kmemdup.
>
> fix below issue reported by coccicheck
> ./fs/omfs/inode.c:366:9-16: WARNING opportunity for kmemdup
>
> Signed-off-by: Hariprasad Kelam <hariprasad.kelam@xxxxxxxxx>

Thanks!

Acked-by: Bob Copeland <me@xxxxxxxxxxxxxxx>

--
Bob Copeland %% https://bobcopeland.com/