summaryrefslogtreecommitdiffstats
path: root/sound/core
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2018-06-20 14:31:41 -0700
committerDarren Hart (VMware) <dvhart@infradead.org>2018-06-22 16:24:40 -0700
commit6fb741076a9fc53355e56dff2e2b46782b3a46d3 (patch)
treec0731ea102bcbd668d8bd708de7ab08bd3c7f999 /sound/core
parentf193f7985f48a40885ce2e270c4cea9697650cc1 (diff)
downloadlinux-6fb741076a9fc53355e56dff2e2b46782b3a46d3.tar.gz
linux-6fb741076a9fc53355e56dff2e2b46782b3a46d3.tar.bz2
linux-6fb741076a9fc53355e56dff2e2b46782b3a46d3.zip
platform/x86: wmi: Do not mix pages and kmalloc
The probe handler_data was being allocated with __get_free_pages() for no reason I could find. The error path was using kfree(). Since other things are happily using kmalloc() in the probe path, switch to kmalloc() entirely. This fixes the error path mismatch and will avoid issues with CONFIG_HARDENED_USERCOPY_PAGESPAN=y. Reported-by: Mihai Donțu <mihai.dontu@gmail.com> Signed-off-by: Kees Cook <keescook@chromium.org> Acked-by: Mario Limonciello <Mario.limonciello@dell.com> Cc: stable@vger.kernel.org Signed-off-by: Darren Hart (VMware) <dvhart@infradead.org>
Diffstat (limited to 'sound/core')
0 files changed, 0 insertions, 0 deletions