]> git.baikalelectronics.ru Git - kernel.git/commit
floppy: replace wrong kmalloc(GFP_USER) with GFP_KERNEL
authorVlastimil Babka <vbabka@suse.cz>
Wed, 4 Jan 2017 10:19:31 +0000 (11:19 +0100)
committerJens Axboe <axboe@fb.com>
Thu, 12 Jan 2017 03:47:08 +0000 (20:47 -0700)
commit54bccccf3818c636182fb8c139cd7a16cf0eaf12
tree337d6d186a2b8e557020202ae2fd6935cf513cb7
parent56bfd77d2de4945a1b3920bf962cd2407ff74379
floppy: replace wrong kmalloc(GFP_USER) with GFP_KERNEL

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@linuxonhyperv.com>
Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/block/floppy.c