linux/drivers/net/wireless/brcm80211/brcmfmac
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
..
bcmsdh_sdmmc.c brcmfmac: define and use platform specific data for SDIO. 2013-04-12 14:27:55 -04:00
bcmsdh.c brcmfmac: define and use platform specific data for SDIO. 2013-04-12 14:27:55 -04:00
dhd_bus.h brcmfmac: add optional bus callback definition for tx queue cleanup 2013-04-03 15:07:05 -04:00
dhd_cdc.c brcmfmac: avoid error output on header only packet 2013-04-03 15:07:07 -04:00
dhd_common.c brcmfmac: introduce tracepoints for message logging 2013-03-06 16:28:31 -05:00
dhd_dbg.c brcmfmac: handle firmware signalling destination entry state 2013-04-08 15:28:41 -04:00
dhd_dbg.h brcmfmac: add hexadecimal trace of message payload 2013-04-08 15:28:43 -04:00
dhd_linux.c brcmfmac: check memory allocation in brcmf_add_if() 2013-04-22 15:20:21 -04:00
dhd_proto.h brcmfmac: add parameter to brcmf_proto_hdrpush() for data offset 2013-03-06 16:28:50 -05:00
dhd_sdio.c brcmfmac: define and use platform specific data for SDIO. 2013-04-12 14:27:55 -04:00
dhd.h brcmfmac: adopt new d11 interface 2013-04-12 14:27:54 -04:00
fweh.c brcmfmac: only use ifidx from BDC header in brcmf_rx_frames() 2013-04-08 15:28:48 -04:00
fweh.h brcmfmac: only use ifidx from BDC header in brcmf_rx_frames() 2013-04-08 15:28:48 -04:00
fwil_types.h brcmfmac: P2P action frame tx. 2013-02-08 14:51:40 -05:00
fwil.c brcmfmac: add hexadecimal trace of message payload 2013-04-08 15:28:43 -04:00
fwil.h brcmfmac: use struct brcmf_if as interface object for fwil functions 2012-10-29 15:28:27 -04:00
fwsignal.c brcmfmac: reinitialize dequeue mask per node 2013-04-22 15:20:20 -04:00
fwsignal.h brcmfmac: fix handling sk_buff cleanup upon bus tx failure 2013-04-03 15:07:06 -04:00
Makefile brcmfmac: add support for TLV based firmware signalling 2013-03-06 16:28:42 -05:00
p2p.c brcmfmac: adopt new d11 interface 2013-04-12 14:27:54 -04:00
p2p.h brcmfmac: Add tx p2p off-channel support. 2013-02-08 14:51:43 -05:00
sdio_chip.c brcmfmac: Add drive strength programming for SDIO 43143. 2013-04-12 14:27:55 -04:00
sdio_chip.h brcmfmac: add support for dongle ARM CR4 core 2013-04-12 14:27:54 -04:00
sdio_host.h brcmfmac: define and use platform specific data for SDIO. 2013-04-12 14:27:55 -04:00
tracepoint.c brcmfmac: introduce tracepoints for message logging 2013-03-06 16:28:31 -05:00
tracepoint.h brcmfmac: add hexadecimal trace of message payload 2013-04-08 15:28:43 -04:00
usb_rdl.h brcm80211: fmac: add USB support for bcm43235/6/8 chipsets 2012-02-22 14:48:53 -05:00
usb.c brcmfmac: assure brcmf_txcomplete() is called in failure paths 2013-03-06 16:28:46 -05:00
usb.h brcmfmac: usb suspend/resume. 2012-11-16 14:28:47 -05:00
wl_cfg80211.c brcmfmac: obtain iftype for firmware-signal descriptor lookup 2013-04-12 14:27:56 -04:00
wl_cfg80211.h brcmfmac: obtain iftype for firmware-signal descriptor lookup 2013-04-12 14:27:56 -04:00