X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=net%2Fipv4%2Fdevinet.c;h=b047e2d8a614f2ee561f0741687d058b0deafa06;hb=351638e7de;hp=dfc39d4d48b7471fc83035746026fa14d1dcf497;hpb=b1098bbe1b24d5d90cff92fbd716d2ef4bed2cff;p=firefly-linux-kernel-4.4.55.git diff --git a/net/ipv4/devinet.c b/net/ipv4/devinet.c index dfc39d4d48b7..b047e2d8a614 100644 --- a/net/ipv4/devinet.c +++ b/net/ipv4/devinet.c @@ -1333,7 +1333,7 @@ static void inetdev_send_gratuitous_arp(struct net_device *dev, static int inetdev_event(struct notifier_block *this, unsigned long event, void *ptr) { - struct net_device *dev = ptr; + struct net_device *dev = netdev_notifier_info_to_dev(ptr); struct in_device *in_dev = __in_dev_get_rtnl(dev); ASSERT_RTNL();