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

Commit ac3d3f81 authored by Amerigo Wang's avatar Amerigo Wang Committed by David S. Miller
Browse files

rtnetlink: ignore NETDEV_RELEASE and NETDEV_JOIN event



These two events are not expected to be caught by userspace.

Signed-off-by: default avatarWANG Cong <amwang@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent daf9209b
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1956,6 +1956,8 @@ static int rtnetlink_event(struct notifier_block *this, unsigned long event, voi
	case NETDEV_GOING_DOWN:
	case NETDEV_UNREGISTER:
	case NETDEV_UNREGISTER_BATCH:
	case NETDEV_RELEASE:
	case NETDEV_JOIN:
		break;
	default:
		rtmsg_ifinfo(RTM_NEWLINK, dev, 0);