linux_dsm_epyc7002/drivers/net/wireless/brcm80211/brcmfmac
Dan Carpenter 3e4f319dac brcmfmac: fix end of loop check (signedness bug)
The problem here is that we loop until "remained_buf_len" is less than
zero, but since it is unsigned, it never is.

"remained_buf_len" has to be large enough to hold the value from
"mgmt_ie_buf_len".  That variable is type u32, but it only holds small
values so I have changed to both variables to int.

Also I removed the bogus initialization from "mgmt_ie_buf_len" so that
GCC can detect if it is used unitialized.  I moved the declaration of
"remained_buf_len" closer to where it is used so it's easier to read.

Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
Reviewed-by: Hante Meuleman <meuleman@broadcom.com>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Franky Lin <frankyl@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2012-10-15 14:45:34 -04:00
..
bcmsdh_sdmmc.c Merge branch 'for-davem' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next 2012-09-30 02:30:16 -04:00
bcmsdh.c brcmfmac: clear status for in-band interrupt in brcmf_sdbrcm_isr 2012-09-24 14:59:09 -04:00
dhd_bus.h brcmfmac: Stop all net if queues on tx flow halt. 2012-09-12 14:19:14 -04:00
dhd_cdc.c brcm80211: fmac: add frame header extension support 2012-04-13 14:32:52 -04:00
dhd_common.c Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next into for-davem 2012-10-01 07:39:36 -04:00
dhd_dbg.c brcmfmac: expose sdio internal counters in debugfs 2012-06-13 14:35:50 -04:00
dhd_dbg.h brcmfmac: fix debug printout of event data. 2012-09-24 15:02:05 -04:00
dhd_linux.c brcmfmac: absorb brcmf_sendpkt into brcmf_netdev_start_xmit 2012-09-24 14:59:08 -04:00
dhd_proto.h brcm80211: fmac: move common layer bus interface context to dhd_bus.h 2011-12-19 14:40:46 -05:00
dhd_sdio.c brcmfmac: streamline SDIO read frame routine 2012-09-24 15:02:05 -04:00
dhd.h brcmfmac: rename structure brcmf_cfg80211_priv 2012-09-28 13:54:09 -04:00
Makefile brcmfmac: add debugfs helper functions 2012-06-13 14:35:49 -04:00
sdio_chip.c brcmfmac: add BCM43241 sdio interface driver support 2012-09-07 15:03:43 -04:00
sdio_chip.h brcm80211: fmac: add resetcore function for bcm4330 chip 2011-11-11 14:28:37 -05:00
sdio_host.h brcmfmac: clear status for in-band interrupt in brcmf_sdbrcm_isr 2012-09-24 14:59:09 -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: handle all exceptions as an error. 2012-10-15 14:42:53 -04:00
usb.h brcm80211: fmac: use counters in brcmf_bus structure 2012-03-05 15:53:55 -05:00
wl_cfg80211.c brcmfmac: fix end of loop check (signedness bug) 2012-10-15 14:45:34 -04:00
wl_cfg80211.h brcmfmac: rename structure brcmf_cfg80211_priv 2012-09-28 13:54:09 -04:00