rocker: fix a neigh entry leak issue
authorYing Xue <ying.xue@windriver.com>
Fri, 15 May 2015 04:53:21 +0000 (12:53 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 May 2015 20:58:32 +0000 (16:58 -0400)
commit4133fc0952cbe724161b729fb4cc63a29b5bbbfe
tree62682d82b84f7ae1b2ae8d73a915514771eda28b
parent54eac85057fdc3f1a2100963e0ab292b72fea3d6
rocker: fix a neigh entry leak issue

Once we get a neighbour through looking up arp cache or creating a
new one in rocker_port_ipv4_resolve(), the neighbour's refcount is
already taken. But as we don't put the refcount again after it's
used, this makes the neighbour entry leaked.

Suggested-by: Eric Dumazet <edumazet@google.com>
Acked-by: Jiri Pirko <jiri@resnulli.us>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Ying Xue <ying.xue@windriver.com>
Acked-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/rocker/rocker.c