]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ipv4: Fix memory leak in exception case for splitting tries
authorAlexander Duyck <alexander.h.duyck@intel.com>
Tue, 15 Nov 2016 10:46:12 +0000 (05:46 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Nov 2016 18:24:50 +0000 (13:24 -0500)
commit3114cdfe66c156345b0ae34e2990472f277e0c1b
tree356e4a21747a35c5e3347cb7fc6bc75c9397d769
parent3b7093346b326e5d3590c7d49f6aefe6fa5b2c9a
ipv4: Fix memory leak in exception case for splitting tries

Fix a small memory leak that can occur where we leak a fib_alias in the
event of us not being able to insert it into the local table.

Fixes: 0ddcf43d5d4a0 ("ipv4: FIB Local/MAIN table collapse")
Reported-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/fib_trie.c