Phonet: Netlink event for autoconfigured addresses
From: Rémi Denis-Courmont <remi.denis-courmont@nokia.com> Signed-off-by: Rémi Denis-Courmont <remi.denis-courmont@nokia.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
5708e868dc
commit
b11b5165ae
@ -209,7 +209,14 @@ static int phonet_device_autoconf(struct net_device *dev)
|
||||
SIOCPNGAUTOCONF);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
return phonet_address_add(dev, req.ifr_phonet_autoconf.device);
|
||||
|
||||
ASSERT_RTNL();
|
||||
ret = phonet_address_add(dev, req.ifr_phonet_autoconf.device);
|
||||
if (ret)
|
||||
return ret;
|
||||
phonet_address_notify(RTM_NEWADDR, dev,
|
||||
req.ifr_phonet_autoconf.device);
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* notify Phonet of device events */
|
||||
|
Loading…
Reference in New Issue
Block a user