android_kernel_google_msm/drivers/platform/x86
Pali Rohár 800e58ae21 dell-laptop: Fix allocating & freeing SMI buffer page
commit b8830a4e71b15d0364ac8e6c55301eea73f211da upstream.

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>
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
[lizf: Backported to 3.4: adjust context]
Signed-off-by: Zefan Li <lizefan@huawei.com>
2015-10-22 09:20:06 +08:00
..
acer-wmi.c
acerhdf.c
amilo-rfkill.c
apple-gmux.c
asus-laptop.c
asus-nb-wmi.c
asus-wmi.c
asus-wmi.h
classmate-laptop.c
compal-laptop.c
dell-laptop.c dell-laptop: Fix allocating & freeing SMI buffer page 2015-10-22 09:20:06 +08:00
dell-wmi-aio.c
dell-wmi.c
eeepc-laptop.c
eeepc-wmi.c
fujitsu-laptop.c
fujitsu-tablet.c
hdaps.c
hp-wmi.c
hp_accel.c
ibm_rtl.c
ideapad-laptop.c
intel_ips.c
intel_ips.h
intel_menlow.c
intel_mid_powerbtn.c
intel_mid_thermal.c
intel_oaktrail.c
intel_pmic_gpio.c
intel_scu_ipc.c
intel_scu_ipcutil.c
Kconfig
Makefile
msi-laptop.c
msi-wmi.c
mxm-wmi.c
panasonic-laptop.c
samsung-laptop.c
samsung-q10.c
sony-laptop.c
tc1100-wmi.c
thinkpad_acpi.c
topstar-laptop.c
toshiba_acpi.c
toshiba_bluetooth.c
wmi.c
xo1-rfkill.c
xo15-ebook.c