aboutsummaryrefslogtreecommitdiffstats
path: root/net/appletalk/ddp.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/appletalk/ddp.c')
-rw-r--r--net/appletalk/ddp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/appletalk/ddp.c b/net/appletalk/ddp.c
index fbdfb1224ae1..594b59739546 100644
--- a/net/appletalk/ddp.c
+++ b/net/appletalk/ddp.c
@@ -647,9 +647,11 @@ static inline void atalk_dev_down(struct net_device *dev)
647static int ddp_device_event(struct notifier_block *this, unsigned long event, 647static int ddp_device_event(struct notifier_block *this, unsigned long event,
648 void *ptr) 648 void *ptr)
649{ 649{
650 struct net_device *dev = ptr;
651
650 if (event == NETDEV_DOWN) 652 if (event == NETDEV_DOWN)
651 /* Discard any use of this */ 653 /* Discard any use of this */
652 atalk_dev_down(ptr); 654 atalk_dev_down(dev);
653 655
654 return NOTIFY_DONE; 656 return NOTIFY_DONE;
655} 657}