]> git.baikalelectronics.ru Git - kernel.git/commit
mwifiex: restore handling of NULL parameters
authorDan Carpenter <error27@gmail.com>
Fri, 24 Jun 2011 13:33:35 +0000 (16:33 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 27 Jun 2011 19:09:42 +0000 (15:09 -0400)
commit69233cb2fd327bb5b90f73f85fcf483b62a9d890
treec3e36575ff7495c5a70a567d7d4272acafc466ec
parentd982b048414f58f7cc2afada2f87d02e8df38205
mwifiex: restore handling of NULL parameters

Prior to 084f2ece0c5ed9 "mwifiex: remove casts of void pointers" the
code assumed that the data_buf parameter could be a NULL pointer.
The patch preserved some NULL checks but not consistently, so there
was a potential for NULL dereferences and it changed the behavior.
This patch restores the original behavior.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Acked-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwifiex/sta_cmd.c
drivers/net/wireless/mwifiex/sta_cmdresp.c