openwrt/target/linux/generic/files/drivers/net/phy
Pavel Kubelun 5a69f59602 net: ar8216: address security vulnerabilities in swconfig & ar8216
Imported from e1aaf7ec00%5E%21/#F0
Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>

CHROMIUM: net: ar8216: address security vulnerabilities in swconfig & ar8216

This patch does the following changes:
*address the security vulnerabilities in both swconfig framework and in
 ar8216 driver (many bound check additions, and turned swconfig structure
 signed element into unsigned when applicable)
*address a couple of whitespaces and indendation issues

BUG=chrome-os-partner:33096
TEST=none

Change-Id: I94ea78fcce8c1932cc584d1508c6e3b5dfb93ce9
Signed-off-by: Mathieu Olivari <mathieu@codeaurora.org>
Reviewed-on: https://chromium-review.googlesource.com/236490
Reviewed-by: Toshi Kikuchi <toshik@chromium.org>
Commit-Queue: Toshi Kikuchi <toshik@chromium.org>
Tested-by: Toshi Kikuchi <toshik@chromium.org>
2016-12-01 15:47:43 +01:00
..
b53 kernel: b53: force BCM531x5 port 5 link state if enabled 2016-09-08 23:03:46 +02:00
adm6996.c kernel: adm6996: set carrier status 2016-08-10 03:04:08 +02:00
adm6996.h treewide: replace nbd@openwrt.org with nbd@nbd.name 2016-06-07 08:58:42 +02:00
ar8216.c net: ar8216: address security vulnerabilities in swconfig & ar8216 2016-12-01 15:47:43 +01:00
ar8216.h treewide: replace nbd@openwrt.org with nbd@nbd.name 2016-06-07 08:58:42 +02:00
ar8327.c net: ar8327: replace sprintf() by scnprintf() 2016-12-01 15:47:43 +01:00
ar8327.h treewide: replace nbd@openwrt.org with nbd@nbd.name 2016-06-07 08:58:42 +02:00
ip17xx.c treewide: replace nbd@openwrt.org with nbd@nbd.name 2016-06-07 08:58:42 +02:00
mvsw61xx.c mvsw61xx: enable SerDes on 6176 if required 2016-09-26 13:04:04 +02:00
mvsw61xx.h mvsw61xx: enable SerDes on 6176 if required 2016-09-26 13:04:04 +02:00
mvswitch.c treewide: replace nbd@openwrt.org with nbd@nbd.name 2016-06-07 08:58:42 +02:00
mvswitch.h treewide: replace nbd@openwrt.org with nbd@nbd.name 2016-06-07 08:58:42 +02:00
psb6970.c unify extended vlan id swconfig attributes. AR8216 and PSB6970 used "pvid", IP17xx used "tag" and RTL8306 called it "vid". Change all to "vid" and annotate the description with the valid ID range. 2010-10-12 20:49:35 +00:00
rtl8306.c treewide: replace nbd@openwrt.org with nbd@nbd.name 2016-06-07 08:58:42 +02:00
rtl8366_smi.c strict_strtoul is obsolete, use kstrtoul instead 2013-07-27 09:23:18 +00:00
rtl8366_smi.h linux: generic: rtl836*: fix compilation with !CONFIG_OF 2012-12-15 13:32:02 +00:00
rtl8366rb.c generic: add port mirroring/monitoring capability to rtl8366rb switch 2013-06-04 13:25:52 +00:00
rtl8366s.c fix rtl8366s OF binding 2013-04-12 18:56:05 +00:00
rtl8367.c kernel: rtl8367(b): fix build error 2016-11-19 17:57:04 +01:00
rtl8367b.c kernel: rtl8367(b): fix build error 2016-11-19 17:57:04 +01:00
swconfig_leds.c switch: allow Ethernet port LEDs to show specific port speeds only 2016-02-25 13:31:26 +00:00
swconfig.c net: ar8216: address security vulnerabilities in swconfig & ar8216 2016-12-01 15:47:43 +01:00