mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
llc: avoid blocking in llc_sap_close()
llc_sap_close() is called by llc_sap_put() which could be called in BH context in llc_rcv(). We can't block in BH. There is no reason to block it here, kfree_rcu() should be sufficient. Signed-off-by: Cong Wang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
15033f0457
commit
9708d2b5b7
2 changed files with 2 additions and 3 deletions
|
|
@ -127,9 +127,7 @@ void llc_sap_close(struct llc_sap *sap)
|
|||
list_del_rcu(&sap->node);
|
||||
spin_unlock_bh(&llc_sap_list_lock);
|
||||
|
||||
synchronize_rcu();
|
||||
|
||||
kfree(sap);
|
||||
kfree_rcu(sap, rcu);
|
||||
}
|
||||
|
||||
static struct packet_type llc_packet_type __read_mostly = {
|
||||
|
|
|
|||
Loading…
Reference in a new issue