mirror of
https://github.com/torvalds/linux.git
synced 2024-11-11 06:31:49 +00:00
rtnetlink: ignore NETDEV_RELEASE and NETDEV_JOIN event
These two events are not expected to be caught by userspace. Signed-off-by: WANG Cong <amwang@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
daf9209bb2
commit
ac3d3f8151
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user