OSDN Git Service

wil6210: fix chan check in wil_p2p_listen
authorMaya Erez <merez@codeaurora.org>
Thu, 9 Jun 2016 06:07:50 +0000 (09:07 +0300)
committerKyle Yan <kyan@codeaurora.org>
Mon, 11 Jul 2016 21:25:47 +0000 (14:25 -0700)
commit3299b78b6f009665b68479f9c6cfa62d23dbb472
tree80e3af978f1369e5120ec8d75f945ae59d756a9a
parent6af6a921f701d1871e52d49b8d32177cd34d0f5d
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.

Change-Id: Ib975c99b3b87998c357251a37f4862cbbf68697d
CRs-Fixed: 1026286
Signed-off-by: Maya Erez <merez@codeaurora.org>
drivers/net/wireless/ath/wil6210/p2p.c