summaryrefslogtreecommitdiff
path: root/net/ipv4/fib_trie.c
diff options
context:
space:
mode:
authorAlexander Duyck <alexander.h.duyck@redhat.com>2015-03-13 00:46:23 +0300
committerDavid S. Miller <davem@davemloft.net>2015-03-13 01:26:51 +0300
commit3c9e9f7320f0138497ef7879c0903246746e0ed3 (patch)
treeeea60b4c1788a31f550af86c8afccd9e616f9ebf /net/ipv4/fib_trie.c
parent80f1d68ccba70b1060c9c7360ca83da430f66bed (diff)
downloadlinux-3c9e9f7320f0138497ef7879c0903246746e0ed3.tar.xz
fib_trie: Avoid NULL pointer if local table is not allocated
The function fib_unmerge assumed the local table had already been allocated. If that is not the case however when custom rules are applied then this can result in a NULL pointer dereference. In order to prevent this we must check the value of the local table pointer and if it is NULL simply return 0 as there is no local table to separate from the main. Fixes: 0ddcf43d5 ("ipv4: FIB Local/MAIN table collapse") Reported-by: Madhu Challa <challa@noironetworks.com> Signed-off-by: Alexander Duyck <alexander.h.duyck@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/fib_trie.c')
0 files changed, 0 insertions, 0 deletions