diff options
author | Vlastimil Babka <vbabka@suse.cz> | 2017-01-04 11:19:31 +0100 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2017-01-12 04:47:08 +0100 |
commit | 1661f2e21c8bbf922dcb76faf2126a33ffe4cddb (patch) | |
tree | 337d6d186a2b8e557020202ae2fd6935cf513cb7 /sound | |
parent | Linux 4.10-rc3 (diff) | |
download | linux-1661f2e21c8bbf922dcb76faf2126a33ffe4cddb.tar.xz linux-1661f2e21c8bbf922dcb76faf2126a33ffe4cddb.zip |
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>
Diffstat (limited to 'sound')
0 files changed, 0 insertions, 0 deletions