Openwrt/target/linux
Pavel Kubelun eb049d3777 net: ar8216: hold ar8xxx_dev_list_lock during use_count--
Import from c3fd96a7b8%5E%21/#F0
Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>

CHROMIUM: drivers: ar8216: hold ar8xxx_dev_list_lock during use_count--

It is possible for the remove() callback to run twice in parallel, which
could result into --use_count returning only 1 in both cases and the
rest of the unregistration path to never be reached.

This case has never been observed in practice, but we will fix
preventively to make the code more robust.

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

Change-Id: If09abe27fdb2037f514f8674418bafaab3cbdef6
Signed-off-by: Mathieu Olivari <mathieu@codeaurora.org>
Reviewed-on: https://chromium-review.googlesource.com/232870
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
..
adm5120
adm8668
apm821xx kernel: bump to 4.4.35 2016-11-29 21:12:08 +01:00
ar7
ar71xx ar71xx: fix syntax error in /lib/ar71xx.sh 2016-11-29 19:53:47 +01:00
arc770
archs38
arm64
at91
ath25
au1000
bcm53xx kernel: bump to 4.4.35 2016-11-29 21:12:08 +01:00
brcm47xx kernel: bump to 4.4.35 2016-11-29 21:12:08 +01:00
brcm63xx brcm63xx: Livebox 1: add userspace board support 2016-11-21 18:40:15 +01:00
brcm2708
cns3xxx
gemini
generic net: ar8216: hold ar8xxx_dev_list_lock during use_count-- 2016-12-01 15:47:43 +01:00
imx6
ipq806x ipq806x: refactor rpm clock controller patches 2016-12-01 15:47:43 +01:00
ixp4xx
kirkwood
lantiq kernel: bump to 4.4.35 2016-11-29 21:12:08 +01:00
layerscape kernel: bump to 4.4.35 2016-11-29 21:12:08 +01:00
malta
mcs814x
mediatek
mpc85xx
mvebu mvebu: fix typo in image metadata support 2016-11-27 15:34:22 +01:00
mxs
octeon
omap
omap24xx
orion
oxnas
ppc40x
ppc44x
ramips treewide: fix button keys codes used in dts 2016-11-27 15:34:23 +01:00
rb532
realview
sunxi sunxi: enable CONFIG_VHOST_NET like on x86 2016-11-24 13:25:16 +01:00
uml uml: clean up the kernel config and add squashfs+ext4/f2fs support 2016-11-24 12:53:18 +01:00
x86
xburst
zynq
Makefile