ipv4: fix reply_dst leakage on arp reply
authorJiri Benc <jbenc@redhat.com>
Thu, 1 Oct 2015 14:25:43 +0000 (16:25 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 5 Oct 2015 11:05:15 +0000 (04:05 -0700)
commit181a4224acdfb993a21f987f8617b5c8d7bc654e
tree014fef81b46617480f62df98ee2514acd6ff84d8
parent2306c704ce280c97a60d1f45333b822b40281dea
ipv4: fix reply_dst leakage on arp reply

There are cases when the created metadata reply is not used. Ensure the
allocated memory is freed also in such cases.

Fixes: 63d008a4e9ee ("ipv4: send arp replies to the correct tunnel")
Reported-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: Jiri Benc <jbenc@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/arp.c