Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ebba380c authored by Alexander Aring's avatar Alexander Aring Committed by Marcel Holtmann
Browse files

ieee802154: 6lowpan: fix return of netdev notifier



This patch fixed the return value of netdev notifier. If the command is
a don't care a NOTIFY_DONE should be returned. If the command matched a
NOTIFY_OK should be returned.

Reviewed-by: default avatarStefan Schmidt <stefan@osg.samsung.com>
Signed-off-by: default avatarAlexander Aring <aar@pengutronix.de>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent 5609c185
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -207,7 +207,7 @@ static int lowpan_device_event(struct notifier_block *unused,
	struct net_device *wdev = netdev_notifier_info_to_dev(ptr);

	if (wdev->type != ARPHRD_IEEE802154)
		goto out;
		return NOTIFY_DONE;

	switch (event) {
	case NETDEV_UNREGISTER:
@@ -219,11 +219,10 @@ static int lowpan_device_event(struct notifier_block *unused,
			lowpan_dellink(wdev->ieee802154_ptr->lowpan_dev, NULL);
		break;
	default:
		break;
		return NOTIFY_DONE;
	}

out:
	return NOTIFY_DONE;
	return NOTIFY_OK;
}

static struct notifier_block lowpan_dev_notifier = {