OpenCloudOS-Kernel/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
..
Kconfig
Makefile
airport.c orinoco: minor fixes for problems found by checkpatch.pl 2011-07-15 13:38:31 -04:00
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 orinoco: minor fixes for problems found by checkpatch.pl 2011-07-15 13:38:31 -04:00
hermes.c orinoco: minor fixes for problems found by checkpatch.pl 2011-07-15 13:38:31 -04:00
hermes.h orinoco: minor fixes for problems found by checkpatch.pl 2011-07-15 13:38:31 -04:00
hermes_dld.c orinoco: minor fixes for problems found by checkpatch.pl 2011-07-15 13:38:31 -04:00
hermes_dld.h orinoco: minor fixes for problems found by checkpatch.pl 2011-07-15 13:38:31 -04:00
hermes_rid.h
hw.c orinoco: minor fixes for problems found by checkpatch.pl 2011-07-15 13:38:31 -04:00
hw.h orinoco: minor fixes for problems found by checkpatch.pl 2011-07-15 13:38:31 -04:00
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
mic.c orinoco: minor fixes for problems found by checkpatch.pl 2011-07-15 13:38:31 -04:00
mic.h
orinoco.h orinoco: minor fixes for problems found by checkpatch.pl 2011-07-15 13:38:31 -04:00
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: minor fixes for problems found by checkpatch.pl 2011-07-15 13:38:31 -04:00
orinoco_pci.c orinoco: minor fixes for problems found by checkpatch.pl 2011-07-15 13:38:31 -04:00
orinoco_pci.h
orinoco_plx.c orinoco: minor fixes for problems found by checkpatch.pl 2011-07-15 13:38:31 -04:00
orinoco_tmd.c orinoco: minor fixes for problems found by checkpatch.pl 2011-07-15 13:38:31 -04:00
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 orinoco: abort scan on interface down 2010-11-30 13:23:05 -05:00
spectrum_cs.c Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6 into for-davem 2011-07-22 17:51:16 -04:00
wext.c orinoco: use is_zero_ether_addr() instead of memcmp() 2012-09-07 15:03:37 -04:00
wext.h