Re: [PATCH] fs: omfs: Use kmemdup rather than duplicating its implementation in omfs_get_imap

From: Bob Copeland
Date: Tue Sep 03 2019 - 09:25:42 EST


On Tue, Sep 03, 2019 at 02:39:44PM +0800, zhong jiang wrote:
> kmemdup contains the kmalloc + memcpy. hence it is better to use kmemdup
> directly. Just replace it.
>
> Signed-off-by: zhong jiang <zhongjiang@xxxxxxxxxx>

This same patch was already sent to me by someone else and I acked it:

https://lore.kernel.org/lkml/20190703163158.937-1-huangfq.daxian@xxxxxxxxx/

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