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)
commite40dbc51fbcc3281bb52ecf0f5bec693d36e2aea
tree7950aa0bb0e2a338eed7d948c77cd62ec96bf0d8
parentb0f77d0eae0c58a5a9691a067ada112ceeae2d00
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