Re: [PATCH] floppy: replace wrong kmalloc(GFP_USER) with GFP_KERNEL

From: Jiri Kosina
Date: Wed Jan 04 2017 - 07:25:01 EST


On Wed, 4 Jan 2017, Vlastimil Babka wrote:

> The raw_cmd_copyin() function does a kmalloc() with GFP_USER, although the
> allocated structure is obviously not mapped to userspace, just copied from/to.
> In this case GFP_KERNEL is more appropriate, so let's use it, although in the
> current implementation this does not manifest as any error.
>
> Reported-by: Matthew Wilcox <mawilcox@xxxxxxxxxxxxxxxxx>
> Signed-off-by: Vlastimil Babka <vbabka@xxxxxxx>

Applied, thanks.

--
Jiri Kosina
SUSE Labs