brcmfmac: fix p2p scan abort null pointer exception
authorHante Meuleman <hante.meuleman@broadcom.com>
Mon, 11 Apr 2016 09:35:24 +0000 (11:35 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 14 Apr 2016 12:57:48 +0000 (15:57 +0300)
commit2aec2c9d42aa9ac4b31583cf4e1c7774e040e57d
treec9af08f6a6bc971a7f71819f4da4331512a2b1c6
parent46f2b38a91b08ec7faf1839c3cdcec3cfcc6ad50
brcmfmac: fix p2p scan abort null pointer exception

When p2p connection setup is performed without having ever done an
escan a null pointer exception can occur. This is because the ifp
to abort scanning is taken from escan struct while it was never
initialized. Fix this by using the primary ifp for scan abort. The
abort should still be performed and all scan related commands are
performed on primary ifp.

Reviewed-by: Arend Van Spriel <arend@broadcom.com>
Reviewed-by: Pieter-Paul Giesberts <pieter-paul.giesberts@broadcom.com>
Signed-off-by: Hante Meuleman <hante.meuleman@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c