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

From: Martin Wilck
Date: Fri Aug 09 2019 - 04:39:03 EST


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@xxxxxxxxx>
> ---

Reviewed-by: Martin Wilck <mwilck@xxxxxxxx>