mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
net: always pass struct netdev_notifier_info to netdevice notifiers
commit 351638e7de (net: pass info struct via netdevice notifier)
breaks booting of my KVM guest, this is due to we still forget to pass
struct netdev_notifier_info in several places. This patch completes it.
Cc: Jiri Pirko <[email protected]>
Cc: David S. Miller <[email protected]>
Signed-off-by: Cong Wang <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
06ecf24bdf
commit
75538c2b85
6 changed files with 21 additions and 11 deletions
|
|
@ -575,6 +575,7 @@ static int clip_inet_event(struct notifier_block *this, unsigned long event,
|
|||
void *ifa)
|
||||
{
|
||||
struct in_device *in_dev;
|
||||
struct netdev_notifier_info info;
|
||||
|
||||
in_dev = ((struct in_ifaddr *)ifa)->ifa_dev;
|
||||
/*
|
||||
|
|
@ -583,7 +584,8 @@ static int clip_inet_event(struct notifier_block *this, unsigned long event,
|
|||
*/
|
||||
if (event != NETDEV_UP)
|
||||
return NOTIFY_DONE;
|
||||
return clip_device_event(this, NETDEV_CHANGE, in_dev->dev);
|
||||
netdev_notifier_info_init(&info, in_dev->dev);
|
||||
return clip_device_event(this, NETDEV_CHANGE, &info);
|
||||
}
|
||||
|
||||
static struct notifier_block clip_dev_notifier = {
|
||||
|
|
|
|||
Loading…
Reference in a new issue