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

Commit 678f959b authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "net: rmnet_data: Handle info pointer from netdevice notifier"

parents 9888d2bb abf4c2e9
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
@@ -1193,7 +1193,7 @@ static void rmnet_force_unassociate_device(struct net_device *dev)
int rmnet_config_notify_cb(struct notifier_block *nb,
				  unsigned long event, void *data)
{
	struct net_device *dev = (struct net_device *)data;
	struct net_device *dev = netdev_notifier_info_to_dev(data);

	if (!dev)
		BUG();
@@ -1204,10 +1204,8 @@ int rmnet_config_notify_cb(struct notifier_block *nb,
	case NETDEV_UNREGISTER_FINAL:
	case NETDEV_UNREGISTER:
		trace_rmnet_unregister_cb_entry(dev);
		if (_rmnet_is_physical_endpoint_associated(dev)) {
		LOGH("Kernel is trying to unregister %s", dev->name);
		rmnet_force_unassociate_device(dev);
		}
		trace_rmnet_unregister_cb_exit(dev);
		break;