[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YbsRlDYT2BfgrXRX@infradead.org>
Date: Thu, 16 Dec 2021 02:14:44 -0800
From: Christoph Hellwig <hch@...radead.org>
To: Miko Larsson <mikoxyzzz@...il.com>
Cc: minchan@...nel.org, ngupta@...are.org, senozhatsky@...omium.org,
axboe@...nel.dk, linux-kernel@...r.kernel.org,
linux-block@...r.kernel.org
Subject: Re: [PATCH 2/2] zram: zram_drv: replace strlcpy with strscpy
On Wed, Dec 15, 2021 at 08:21:28PM +0100, Miko Larsson wrote:
> strlcpy shouldn't be used; strscpy should be used instead.
I think the proper API to use here would be kmemdup_nul.
Powered by blists - more mailing lists