]> git.baikalelectronics.ru Git - kernel.git/commit
bridge: fdb: add proper lock checks in searching functions
authorNikolay Aleksandrov <nikolay@cumulusnetworks.com>
Mon, 13 Feb 2017 13:59:10 +0000 (14:59 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Feb 2017 17:41:03 +0000 (12:41 -0500)
commite5c10e1e4550345f24d700ec2c554a9bc60a0a17
treebc656691dc1484ec5dbe7942535b3a63f75d265e
parent96fae323970b6b6ceaf51803a0e58372751d1ab4
bridge: fdb: add proper lock checks in searching functions

In order to avoid new errors add checks to br_fdb_find and fdb_find_rcu
functions. The first requires hash_lock, the second obviously RCU.

Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_fdb.c
net/bridge/br_private.h