]> git.baikalelectronics.ru Git - kernel.git/commit
fib_frontend: fix possible NULL pointer dereference
authorOliver Hartkopp <socketcan@hartkopp.net>
Thu, 23 Jan 2014 09:19:34 +0000 (10:19 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 24 Jan 2014 23:51:26 +0000 (15:51 -0800)
commit2a6960b36d5e8f4b46c0a00462c61c9f7a0dea16
tree0e935ff454cd02558b88ec10c817ad703598977c
parent2ef4857a2bcf4834fa22a4c07864dbb2d2b49557
fib_frontend: fix possible NULL pointer dereference

The two commits 2c4dc291fa (net: remove delay at device dismantle) and
b0c02f7d599 (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 <socketcan@hartkopp.net>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/fib_frontend.c