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)
commit410b3d48f5111a28bb8d4c3d3dc5984c1baf7fc9
treebc656691dc1484ec5dbe7942535b3a63f75d265e
parentbfd0aeac52f74bfb44c0974131e44abb33a13e78
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