Commit b8830a4
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 <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>1 parent 2e19f93 commit b8830a4
1 file changed
+3
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
306 | 306 | | |
307 | 307 | | |
308 | 308 | | |
309 | | - | |
310 | 309 | | |
311 | 310 | | |
312 | 311 | | |
| |||
2068 | 2067 | | |
2069 | 2068 | | |
2070 | 2069 | | |
2071 | | - | |
2072 | | - | |
| 2070 | + | |
| 2071 | + | |
2073 | 2072 | | |
2074 | 2073 | | |
2075 | 2074 | | |
2076 | | - | |
2077 | 2075 | | |
2078 | 2076 | | |
2079 | 2077 | | |
| |||
2135 | 2133 | | |
2136 | 2134 | | |
2137 | 2135 | | |
2138 | | - | |
| 2136 | + | |
2139 | 2137 | | |
2140 | 2138 | | |
2141 | 2139 | | |
| |||
0 commit comments