From: Pali Rohár Date: Tue, 23 Jun 2015 08:11:19 +0000 (+0200) Subject: dell-laptop: Fix allocating & freeing SMI buffer page X-Git-Tag: omap-for-v4.2/fixes-rc1^2~5^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b8830a4e71b15d0364ac8e6c55301eea73f211da;p=pandora-kernel.git dell-laptop: Fix allocating & freeing SMI buffer page 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 Acked-by: Michal Hocko Cc: stable@vger.kernel.org Signed-off-by: Darren Hart --- Reading git-diff-tree failed