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)
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>

No differences found