* Re: [PATCH] cdrom: gdrom.c: fix a incorrect use of kstrndup()
[not found] <20190805184154.GA9776@saurav>
@ 2019-08-09 8:19 ` Martin Wilck
0 siblings, 0 replies; only message in thread
From: Martin Wilck @ 2019-08-09 8:19 UTC (permalink / raw)
To: zhongjiang, gregkh, opensource, wang6495, linux-kernel, tglx,
axboe, swinslow, saurav.girepunje
Cc: saurav.girepunje
On Tue, 2019-08-06 at 00:11 +0530, Saurav Girepunje wrote:
> According to doc: "Note: Use kmemdup_nul() instead if the size
> is known exactly." So we should use kmemdup_nul() here instead of
> kstrndup().
>
> Signed-off-by: Saurav Girepunje <saurav.girepunje@gmail.com>
> ---
Reviewed-by: Martin Wilck <mwilck@suse.com>
^ permalink raw reply [flat|nested] only message in thread