wil6210: fix chan check in wil_p2p_listen
authorMaya Erez <qca_merez@qualcomm.com>
Wed, 8 Jun 2016 17:07:47 +0000 (20:07 +0300)
committerKalle Valo <kvalo@qca.qualcomm.com>
Tue, 14 Jun 2016 13:20:14 +0000 (16:20 +0300)
commit9c830abe9194871d6d2846f37930ef373356a016
tree9774b88b4ff9ed514cb4c0774676e55a596b09da
parentdeb85bb1dadf8b4aaa5b33497766dc3f3e4b530e
wil6210: fix chan check in wil_p2p_listen

In wil_p2p_listen chan is checked to protect against NULL
pointer access only before setting channel = chan->hw_value.
Add a global parameter check to cover all accesses to chan.

Signed-off-by: Maya Erez <qca_merez@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/wil6210/p2p.c