]> git.baikalelectronics.ru Git - kernel.git/commit
net: wireless: wcn36xx: fix potential NULL pointer dereference
authorMichal Nazarewicz <mina86@mina86.com>
Mon, 2 Dec 2013 13:09:34 +0000 (14:09 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 2 Dec 2013 18:11:52 +0000 (13:11 -0500)
commit61c4b20b422603243759f50d1d0c126b429d2715
tree5adfcf3c533778723fed5c415ca2e2024f7026c8
parentd6b0173f895dd5df38f4ba8d1b8ce8088f58b682
net: wireless: wcn36xx: fix potential NULL pointer dereference

If kmalloc fails wcn36xx_smd_rsp_process will attempt to dereference
a NULL pointer.  There might be a better error recovery then just
printing an error, but printing an error message is better then the
current behaviour.

Signed-off-by: Michal Nazarewicz <mina86@mina86.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/wcn36xx/smd.c