]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit03022ce8dc27d9b64eee8c3dad8c56dc577db72f
tree014fef81b46617480f62df98ee2514acd6ff84d8
parent99406409499cb44ef454c96c954b2e6265dff714
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: d7433464b8f0 ("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