diff options
Diffstat (limited to 'net/can/raw.c')
-rw-r--r-- | net/can/raw.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/can/raw.c b/net/can/raw.c index 1085e65f848e..641e1c895123 100644 --- a/net/can/raw.c +++ b/net/can/raw.c | |||
@@ -239,9 +239,9 @@ static int raw_enable_allfilters(struct net_device *dev, struct sock *sk) | |||
239 | } | 239 | } |
240 | 240 | ||
241 | static int raw_notifier(struct notifier_block *nb, | 241 | static int raw_notifier(struct notifier_block *nb, |
242 | unsigned long msg, void *data) | 242 | unsigned long msg, void *ptr) |
243 | { | 243 | { |
244 | struct net_device *dev = (struct net_device *)data; | 244 | struct net_device *dev = netdev_notifier_info_to_dev(ptr); |
245 | struct raw_sock *ro = container_of(nb, struct raw_sock, notifier); | 245 | struct raw_sock *ro = container_of(nb, struct raw_sock, notifier); |
246 | struct sock *sk = &ro->sk; | 246 | struct sock *sk = &ro->sk; |
247 | 247 | ||