linux/drivers/net/wireless/brcm80211
Arend van Spriel 991c209393 brcmfmac: check memory allocation in brcmf_add_if()
For P2P_DEVICE interface the struct brcmf_if instance is
allocated using kzalloc() which can fail. Add pointer
check and return -ENOMEM if it failed. Fixes the following
smatch error:

"drivers/net/wireless/brcm80211/brcmfmac/dhd_linux.c:770
brcmf_add_if()
  error: potential null dereference 'ifp'. (kzalloc returns null)"

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Reviewed-by: Hante Meuleman <meuleman@broadcom.com>
Reviewed-by: Piotr Haber <phaber@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2013-04-22 15:20:21 -04:00
..
brcmfmac brcmfmac: check memory allocation in brcmf_add_if() 2013-04-22 15:20:21 -04:00
brcmsmac brcm80211: simplify makefiles 2013-04-12 15:29:04 -04:00
brcmutil brcm80211: simplify makefiles 2013-04-12 15:29:04 -04:00
include brcmfmac: Add 43143 SDIO support. 2013-04-12 14:27:55 -04:00
Kconfig brcmfmac: define and use platform specific data for SDIO. 2013-04-12 14:27:55 -04:00
Makefile brcm80211: Use normal DEBUG define 2012-01-24 14:21:13 -05:00