Hello Kalle Valo,
On 12/30/2015 05:15 PM, Kalle Valo wrote:
Uri Mashiach writes:
Fix the below Oops when trying to modprobe wlcore_spi.
The oops occurs because the wl1271_power_{off,on}()
function doesn't check the power() function pointer.
[ 23.401447] Unable to handle kernel
d+0xd4/0xf0)
[ 23.711747] [] (kthread) from []
(ret_from_fork+0x14/0x3c)
[ 23.719357] Code: bad PC value
[ 23.722760] ---[ end trace 981be8510db9b3a9 ]---
Prevent oops by validationg power() pointer value before
calling the function.
Signed-off-by: Uri Mashiach
Cc: sta...@vger.kernel.o
ace 66ed188198f4e24e ]---
Signed-off-by: Uri Mashiach
Acked-by: Igor Grinberg
Cc: sta...@vger.kernel.org
---
v1 -> v2: Stable tag v3.9+
drivers/net/wireless/ti/wlcore/spi.c | 10 +++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/drivers/net/wireless/ti/wlcore/spi.c
b/drive
ace 66ed188198f4e24e ]---
Signed-off-by: Uri Mashiach
---
drivers/net/wireless/ti/wlcore/spi.c | 10 +++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/drivers/net/wireless/ti/wlcore/spi.c
b/drivers/net/wireless/ti/wlcore/spi.c
index f1ac283..720e4e4 100644
--- a/drivers/net/wireless