[dm-devel] [PATCH] dm-init: fix 2 incorrect use of kstrndup()

Bart Van Assche bvanassche at acm.org
Wed May 29 12:23:53 UTC 2019

On 5/28/19 6:33 PM, Gen Zhang wrote:
> In drivers/md/dm-init.c, kstrndup() is incorrectly used twice.
> It should be: char *kstrndup(const char *s, size_t max, gfp_t gfp);

Should the following be added to this patch?

Fixes: 6bbc923dfcf5 ("dm: add support to directly boot to a mapped
device") # v5.1.
Cc: stable



More information about the dm-devel mailing list