summaryrefslogtreecommitdiffstats
path: root/net/bluetooth
diff options
context:
space:
mode:
authorGlenn Ruben Bakke <glenn.ruben.bakke@nordicsemi.no>2015-06-17 07:32:23 -0700
committerMarcel Holtmann <marcel@holtmann.org>2015-06-17 19:17:57 +0200
commita2105ae1de117e17522d37b6dedb1f286c544160 (patch)
tree99a517e8ebac43d871599fc62cb7de09e130edcb /net/bluetooth
parent40db5f0eddbee3d2a9a05a3b5dc20368cb65ca0f (diff)
downloadop-kernel-dev-a2105ae1de117e17522d37b6dedb1f286c544160.zip
op-kernel-dev-a2105ae1de117e17522d37b6dedb1f286c544160.tar.gz
Bluetooth: 6lowpan: Enable delete_netdev to be scheduled when last peer is deleted
This patch fixes an issue with the netdev not being unregistered when the last peer is deleted. Removing the logical negation operator on the boolean solves this issue. If the last peer is removed the condition will be true, and the delete_netdev() is scheduled. Signed-off-by: Lukasz Duda <lukasz.duda@nordicsemi.no> Signed-off-by: Glenn Ruben Bakke <glenn.ruben.bakke@nordicsemi.no> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth')
-rw-r--r--net/bluetooth/6lowpan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/6lowpan.c b/net/bluetooth/6lowpan.c
index f3d6046..3edc731 100644
--- a/net/bluetooth/6lowpan.c
+++ b/net/bluetooth/6lowpan.c
@@ -977,7 +977,7 @@ static void chan_close_cb(struct l2cap_chan *chan)
ifdown(dev->netdev);
- if (!removed) {
+ if (removed) {
INIT_WORK(&entry->delete_netdev, delete_netdev);
schedule_work(&entry->delete_netdev);
}
OpenPOWER on IntegriCloud