]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
brcmfmac: use kcalloc() to prevent integer overflow
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 26 Sep 2012 07:21:48 +0000 (10:21 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 28 Sep 2012 17:54:06 +0000 (13:54 -0400)
commit58901d181f12807d6bfa7ef29547b560740dd305
tree76fa8a59d70d31f5827c95db25514e3e81b037dc
parent365d2ebcaba5f08590b8a988d137f7139a8163a5
brcmfmac: use kcalloc() to prevent integer overflow

The multiplication here looks like it could overflow.  I've changed it
to use kcalloc() to prevent that.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c