openwrtv3/target/linux/generic
Pavel Kubelun a3454d1929 net: ar8216: prevent device duplication in ar8xxx_dev_list
Import from fd7b89dd46%5E%21/#F0
Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>

CHROMIUM: drivers: ar8216: prevent device duplication in ar8xxx_dev_list

If probe is called twice, once for PHY0 and a second time for PHY4,
the same switch device will be added twice to ar8xxx_dev_list, while
supposedly this list should have one element per hardware switch present
in the system.

While no negative impact have been observed, it does happen if a
platform instanciates these two PHYs from device-tree, as an example.

Change-Id: Iddcbdf7d4adacb0af01975b73f8e56b4582e894e
Signed-off-by: Mathieu Olivari <mathieu@codeaurora.org>
Reviewed-on: https://chromium-review.googlesource.com/234790
Reviewed-by: Matthias Kaehlcke <mka@chromium.org>
Reviewed-by: Toshi Kikuchi <toshik@chromium.org>
Tested-by: Toshi Kikuchi <toshik@chromium.org>
2016-12-01 15:47:43 +01:00
..
base-files update the /init file to start /sbin/init 2013-03-13 18:11:13 +00:00
files net: ar8216: prevent device duplication in ar8xxx_dev_list 2016-12-01 15:47:43 +01:00
image treewide: replace nbd@openwrt.org with nbd@nbd.name 2016-06-07 08:58:42 +02:00
patches-3.18 kernel: add fix for CVE-2016-5195 2016-10-24 20:25:14 +03:00
patches-4.1 kernel: add fix for CVE-2016-5195 2016-10-24 20:25:14 +03:00
patches-4.4 kernel: bump to 4.4.35 2016-11-29 21:12:08 +01:00
config-3.18 kernel: enable pcrypt 2016-11-16 23:38:34 +01:00
config-4.1 kernel: enable pcrypt 2016-11-16 23:38:34 +01:00
config-4.4 kernel: add missing config symbols 2016-12-01 15:05:03 +01:00
PATCHES kernel: update PATCHES with a stricter policy 2013-07-09 20:52:07 +00:00