Skip to content

Commit c9eb315

Browse files
pvopsiff
authored andcommitted
Bluetooth: L2CAP: export l2cap_chan_hold for modules
[ Upstream commit e060088 ] l2cap_chan_put() is exported, so export also l2cap_chan_hold() for modules. l2cap_chan_hold() has use case in net/bluetooth/6lowpan.c Signed-off-by: Pauli Virtanen <pav@iki.fi> Reviewed-by: Paul Menzel <pmenzel@molgen.mpg.de> Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com> Signed-off-by: Sasha Levin <sashal@kernel.org> (cherry picked from commit ad141380d76848827420f8a880cb1c74df6461ce) Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
1 parent 0809267 commit c9eb315

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

net/bluetooth/l2cap_core.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -497,6 +497,7 @@ void l2cap_chan_hold(struct l2cap_chan *c)
497497

498498
kref_get(&c->kref);
499499
}
500+
EXPORT_SYMBOL_GPL(l2cap_chan_hold);
500501

501502
struct l2cap_chan *l2cap_chan_hold_unless_zero(struct l2cap_chan *c)
502503
{

0 commit comments

Comments
 (0)