]> git.baikalelectronics.ru Git - kernel.git/commit
wlcore: fix unsafe dereference of the wlvif
authorVictor Goldenshtein <victorg@ti.com>
Tue, 17 Sep 2013 15:41:25 +0000 (18:41 +0300)
committerLuciano Coelho <luciano.coelho@intel.com>
Mon, 30 Sep 2013 18:12:20 +0000 (21:12 +0300)
commitd293dfe5d6e05d2e1dbc3af362ef6968ea319cd6
treeb10200f4e0e73794b9b1a3bf4b195ffba26ba495
parent702e08dc4dbd8cefc95cfe7be8012545e4754e3e
wlcore: fix unsafe dereference of the wlvif

wlvif could be passed as NULL from the wlcore_tx_work_locked()
to the wl1271_prepare_tx_frame() and to wl1271_skb_queue_head()
functions. This may lead to a Kernel panic, fix this by
validating that wlvif != NULL.

Signed-off-by: Victor Goldenshtein <victorg@ti.com>
Signed-off-by: Eliad Peller <eliad@wizery.com>
Signed-off-by: Luciano Coelho <luciano.coelho@intel.com>
drivers/net/wireless/ti/wlcore/tx.c