]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
net: fix ip_mr_init() error path
authorBenjamin Thery <benjamin.thery@bull.net>
Wed, 19 Nov 2008 22:07:41 +0000 (14:07 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 Nov 2008 22:07:41 +0000 (14:07 -0800)
commitc3e388964baa00d8c3960f23e8c8a1fb3966759e
tree29014a69e1702a641bd782838050db47b7de9c19
parent7f0f598a0069d1ab072375965a4b69137233169c
net: fix ip_mr_init() error path

Similarly to IPv6 ip6_mr_init() (fixed last week), the order of cleanup
operations in the error/exit section of ip_mr_init() is completely
inversed. It should be the other way around.
Also a del_timer() is missing in the error path.

I should have guessed last week that this same error existed in ipmr.c
too, as ip6mr.c is largely inspired by ipmr.c.

Signed-off-by: Benjamin Thery <benjamin.thery@bull.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ipmr.c