kernel_optimize_test/arch/mips/bcm63xx
Jonas Gorski d21a771346 MIPS: BCM63XX: Properly handle mac address octet overflow
While calculating the mac address the pointer for the current octet was
never reset back to the least significant one after being decremented
because of an octet overflow. This resulted in the code continuing to
increment at the current octet, potentially generating duplicate or
invalid mac addresses.

As a second issue the pointer was allowed to advance up to the most
significant octet, modifying the OUI, and potentially changing the type
of mac address.

Rewrite the code so it resets the pointer to the least significant
in each outer loop step, and bails out when the least significant octet
of the OUI is reached.

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
Cc: linux-mips@linux-mips.org
Cc: Maxime Bizon <mbizon@freebox.fr>
Cc: Florian Fainelli <florian@openwrt.org>
Cc: Sergei Shtylyov <sshtylyov@mvista.com>
Patchwork: https://patchwork.linux-mips.org/patch/4348/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2012-10-01 11:36:34 +02:00
..
boards MIPS: BCM63XX: Properly handle mac address octet overflow 2012-10-01 11:36:34 +02:00
clk.c MIPS: BCM63XX: Expose the USBH/USBD clocks on BCM6328/BCM6368 2012-08-30 20:15:52 +02:00
cpu.c MIPS: BCM63XX: Add basic BCM6328 support 2012-07-24 16:33:12 +02:00
cs.c
dev-dsp.c MIPS: BCM63XX: Fix platform_devices id 2012-07-24 16:33:09 +02:00
dev-enet.c
dev-flash.c MIPS: BCM63XX: Add basic BCM6328 support 2012-07-24 16:33:12 +02:00
dev-pcmcia.c mips: mark const init data with __initconst instead of __initdata 2012-07-19 11:23:43 +02:00
dev-rng.c MIPS: BCM63XX: add RNG driver platform_device stub 2012-07-24 16:33:10 +02:00
dev-spi.c MIPS: BCM63xx: Fix SPI message control register handling for BCM6338/6348. 2012-08-17 10:57:28 +02:00
dev-uart.c MIPS: BCM63XX: Add support for bcm6368 CPU. 2011-12-07 22:03:04 +00:00
dev-usb-usbd.c MIPS: BCM63XX: Create platform_device for USBD 2012-08-30 20:15:52 +02:00
dev-wdt.c MIPS: BCM63XX: Fix platform_devices id 2012-07-24 16:33:09 +02:00
early_printk.c
gpio.c MIPS: BCM63xx: Fix GPIO set/get for BCM6345 2011-12-07 22:03:04 +00:00
irq.c MIPS: BCM63XX: Add basic BCM6328 support 2012-07-24 16:33:12 +02:00
Kconfig MIPS: BCM63XX: Add PCIe Support for BCM6328 2012-07-24 16:33:13 +02:00
Makefile MIPS: BCM63XX: Create platform_device for USBD 2012-08-30 20:15:52 +02:00
Platform
prom.c MIPS: BCM63XX: Add basic BCM6328 support 2012-07-24 16:33:12 +02:00
setup.c MIPS: BCM63XX: Add basic BCM6328 support 2012-07-24 16:33:12 +02:00
timer.c