llc: avoid blocking in llc_sap_close()
authorCong Wang <xiyou.wangcong@gmail.com>
Tue, 11 Sep 2018 18:42:06 +0000 (11:42 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 Sep 2018 16:04:58 +0000 (09:04 -0700)
commit9708d2b5b7c648e8e0a40d11e8cea12f6277f33c
treea207afe8c890c86e413dac645478fd282b6277cb
parent15033f0457dca569b284bef0c8d3ad55fb37eacb
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 <xiyou.wangcong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/llc.h
net/llc/llc_core.c