android_kernel_xiaomi_sm8350/drivers/net/wireless/rt2x00
Pavel Roskin 6b26dead3c rt2x00: fix memory corruption in rf cache, add a sanity check
Change rt2x00_rf_read() and rt2x00_rf_write() to subtract 1 from the rf
register number.  This is needed because the rf registers are enumerated
starting with one.  The size of the rf register cache is just enough to
hold all registers, so writing to the highest register was corrupting
memory.  Add a check to make sure that the rf register number is valid.

Signed-off-by: Pavel Roskin <proski@gnu.org>
Cc: stable@kernel.org
Acked-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2009-08-14 09:06:52 -04:00
..
Kconfig Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/torvalds/linux-2.6 2009-06-15 03:02:23 -07:00
Makefile
rt2x00.h rt2x00: fix memory corruption in rf cache, add a sanity check 2009-08-14 09:06:52 -04:00
rt2x00config.c
rt2x00crypto.c
rt2x00debug.c
rt2x00debug.h
rt2x00dev.c
rt2x00dump.h
rt2x00firmware.c
rt2x00ht.c
rt2x00leds.c
rt2x00leds.h
rt2x00lib.h Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/torvalds/linux-2.6 2009-06-15 03:02:23 -07:00
rt2x00link.c
rt2x00mac.c
rt2x00pci.c
rt2x00pci.h
rt2x00queue.c
rt2x00queue.h
rt2x00reg.h
rt2x00rfkill.c
rt2x00usb.c
rt2x00usb.h
rt61pci.c
rt61pci.h
rt73usb.c
rt73usb.h
rt2400pci.c
rt2400pci.h
rt2500pci.c
rt2500pci.h
rt2500usb.c rt2x00: Fix chipset detection for rt2500usb 2009-07-21 12:07:43 -04:00
rt2500usb.h
rt2800usb.c
rt2800usb.h