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:
Rémi Denis-Courmont 2009-09-14 03:10:27 +00:00 committed by David S. Miller
parent 5708e868dc
commit b11b5165ae

View file

@ -209,7 +209,14 @@ static int phonet_device_autoconf(struct net_device *dev)
SIOCPNGAUTOCONF); SIOCPNGAUTOCONF);
if (ret < 0) if (ret < 0)
return ret; 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 */ /* notify Phonet of device events */