xt_qtaguid: Fix boot panic
authorJon Medhurst (Tixy) <tixy@linaro.org>
Tue, 15 Apr 2014 04:20:49 +0000 (21:20 -0700)
committerJohn Stultz <john.stultz@linaro.org>
Tue, 16 Feb 2016 21:51:33 +0000 (13:51 -0800)
We need the change below because of mainline commit 351638e7de (net: pass
info struct via netdevice notifier). Otherwise we panic.

Change-Id: I7daf7513a733933fdcbaeebea7f8191f8b6a0432
Signed-off-by: John Stultz <john.stultz@linaro.org>
net/netfilter/xt_qtaguid.c

index eee667987f7d70e0d9c30e5bad9febbb932e6095..4f574a6fc1fbbb3f8a9b38747c19ef5a02e5766e 100644 (file)
@@ -1375,7 +1375,7 @@ unlock:
 
 static int iface_netdev_event_handler(struct notifier_block *nb,
                                      unsigned long event, void *ptr) {
-       struct net_device *dev = ptr;
+       struct net_device *dev = netdev_notifier_info_to_dev(ptr);
 
        if (unlikely(module_passive))
                return NOTIFY_DONE;