dell-laptop: Fix allocating & freeing SMI buffer page
authorPali Rohár <pali.rohar@gmail.com>
Tue, 23 Jun 2015 08:11:19 +0000 (10:11 +0200)
committerDarren Hart <dvhart@linux.intel.com>
Thu, 25 Jun 2015 03:22:02 +0000 (20:22 -0700)
This commit fix kernel crash when probing for rfkill devices in dell-laptop
driver failed. Function free_page() was incorrectly used on struct page *
instead of virtual address of SMI buffer.

This commit also simplify allocating page for SMI buffer by using
__get_free_page() function instead of sequential call of functions
alloc_page() and page_address().

Signed-off-by: Pali Rohár <pali.rohar@gmail.com>
Acked-by: Michal Hocko <mhocko@suse.cz>
Cc: stable@vger.kernel.org
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
drivers/platform/x86/dell-laptop.c

Simple merge