]> git.baikalelectronics.ru Git - kernel.git/commit
ipmr: Don't leak memory if fib lookup fails.
authorBen Greear <greearb@candelatech.com>
Thu, 15 Jul 2010 13:22:33 +0000 (13:22 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 16 Jul 2010 05:38:43 +0000 (22:38 -0700)
commitad181f0bdaad423c51ed1c382c93e7c51a772266
tree7950aa0bb0e2a338eed7d948c77cd62ec96bf0d8
parent449c1850aeb5245bcfc5554682342887cc6db5bd
ipmr: Don't leak memory if fib lookup fails.

This was detected using two mcast router tables.  The
pimreg for the second interface did not have a specific
mrule, so packets received by it were handled by the
default table, which had nothing configured.

This caused the ipmr_fib_lookup to fail, causing
the memory leak.

Signed-off-by: Ben Greear <greearb@candelatech.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ipmr.c