* 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
only message in thread, other threads:[~2019-08-09 8:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <20190805184154.GA9776@saurav>
2019-08-09 8:19 ` [PATCH] cdrom: gdrom.c: fix a incorrect use of kstrndup() Martin Wilck
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®