summaryrefslogtreecommitdiffstats
path: root/CREDITS
diff options
context:
space:
mode:
authorArend van Spriel <arend@broadcom.com>2013-04-17 21:25:50 +0200
committerJohn W. Linville <linville@tuxdriver.com>2013-04-22 15:20:21 -0400
commit991c209393bc30ccb36e212167bf3ecb5f33ff07 (patch)
treebc3dcad7d0f98a1a291dc531919531e0aef7235a /CREDITS
parent07529d20471b07fb8756fd4b9e9ddb8b270808e4 (diff)
downloadblackbird-op-linux-991c209393bc30ccb36e212167bf3ecb5f33ff07.tar.gz
blackbird-op-linux-991c209393bc30ccb36e212167bf3ecb5f33ff07.zip
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>
Diffstat (limited to 'CREDITS')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud