openwrt/target/linux/generic
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
..
base-files
files net: ar8216: hold ar8xxx_dev_list_lock during use_count-- 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