Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fib_frontend: fix possible NULL pointer dereference
The two commits 0115e8e (net: remove delay at device dismantle) and 748e2d9 (net: reinstate rtnl in call_netdevice_notifiers()) silently removed a NULL pointer check for in_dev since Linux 3.7. This patch re-introduces this check as it causes crashing the kernel when setting small mtu values on non-ip capable netdevices. Signed-off-by: Oliver Hartkopp <[email protected]> Acked-by: Eric Dumazet <[email protected]> Signed-off-by: David S. Miller <[email protected]>
- Loading branch information