linux/drivers/net/wireless/orinoco
Dan Carpenter 264e989a0b orinoco_usb: clean up some signedness issues
In ezusb_read_ltv() we had a comparison "(bufsize < 0)" which was never
true because bufsize was unsigned.  I looked at the implications of
that.  If we passed a negative number to ezusb_access_ltv() then it
would be used as the size parameter of the memcpy() because that
function uses min_t(int, exp_len, ans_size).

But fortunately when I looked at the callers, bufsize is not controlled
by the user and it's never negative.  So these signedness mistakes have
no impact.

I removed the always false check from ezusb_read_ltv() and I changed the
types in ezusb_access_ltv() and made the variables unsigned.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2012-10-19 15:53:04 -04:00
..
airport.c
cfg.c nl80211: move scan API to wdev 2012-07-12 12:10:41 +02:00
cfg.h
fw.c wireless, orinoco: release_firmware() tests for NULL, remove explicit tests before calls 2012-04-12 15:06:08 -04:00
fw.h
hermes.c
hermes.h
hermes_dld.c
hermes_dld.h
hermes_rid.h
hw.c
hw.h
Kconfig
main.c net: orinoco: add error handling for failed kmalloc(). 2012-03-28 14:25:35 -04:00
main.h wireless: drivers: make use of WLAN_EID_VENDOR_SPECIFIC 2012-10-18 09:01:54 +02:00
Makefile
mic.c
mic.h
orinoco.h
orinoco_cs.c orinoco_cs: be more careful when matching cards with ID 0x0156:0x0002 2011-08-08 16:04:12 -04:00
orinoco_nortel.c
orinoco_pci.c
orinoco_pci.h
orinoco_plx.c
orinoco_tmd.c
orinoco_usb.c orinoco_usb: clean up some signedness issues 2012-10-19 15:53:04 -04:00
scan.c orinoco: release BSS structures returned by cfg80211_inform_bss() 2011-11-09 16:00:59 -05:00
scan.h
spectrum_cs.c
wext.c orinoco: use is_zero_ether_addr() instead of memcmp() 2012-09-07 15:03:37 -04:00
wext.h