]> git.baikalelectronics.ru Git - kernel.git/commit
fib_trie: Fix uninitialized variable warning
authorAlexander Duyck <alexander.h.duyck@redhat.com>
Wed, 11 Mar 2015 21:02:16 +0000 (14:02 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 11 Mar 2015 21:33:44 +0000 (17:33 -0400)
commit2b92e905b7c4dccf0d11cad61de3c42c3cbcfbd1
tree2ba634a2bb90744aadd9b9ba2d871ff189bac5d2
parenta2dc54ef33e26b55ff9548c7fe1938acdfd6c9ec
fib_trie: Fix uninitialized variable warning

The 0-day kernel test infrastructure reported a use of uninitialized
variable warning for local_table due to the fact that the local and main
allocations had been swapped from the original setup.  This change corrects
that by making it so that we free the main table if the local table
allocation fails.

Fixes: 3ee5fffe8 ("ipv4: FIB Local/MAIN table collapse")
Signed-off-by: Alexander Duyck <alexander.h.duyck@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/fib_frontend.c