2019-08-09 08:40:29

by Martin Wilck

[permalink] [raw]
Subject: Re: [PATCH] cdrom: gdrom.c: fix a incorrect use of kstrndup()

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 <[email protected]>
> ---

Reviewed-by: Martin Wilck <[email protected]>