commit | 93ad0f969fc704959636846fc7f8d1aaf57f523e | [log] [tgz] |
---|---|---|
author | Madhuparna Bhowmik <madhuparnabhowmik04@gmail.com> | Wed Jan 15 17:11:01 2020 +0530 |
committer | David S. Miller <davem@davemloft.net> | Thu Jan 16 14:30:52 2020 +0100 |
tree | 5a232295b049fbb2ebc90a25f7828bedd8899ba4 | |
parent | bd5874da57edd001b35cf28ae737779498c16a56 [diff] |
net: wan: lapbether.c: Use built-in RCU list checking The only callers of the function lapbeth_get_x25_dev() are lapbeth_rcv() and lapbeth_device_event(). lapbeth_rcv() uses rcu_read_lock() whereas lapbeth_device_event() is called with RTNL held (As mentioned in the comments). Therefore, pass lockdep_rtnl_is_held() as cond argument in list_for_each_entry_rcu(); Signed-off-by: Madhuparna Bhowmik <madhuparnabhowmik04@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>