ax25: In ax25_rebuild_header add missing kfree_skb
authorEric W. Biederman <ebiederm@xmission.com>
Mon, 2 Mar 2015 05:59:57 +0000 (23:59 -0600)
committerDavid S. Miller <davem@davemloft.net>
Mon, 2 Mar 2015 21:43:39 +0000 (16:43 -0500)
commite18dbd059319ac8d3fc0a0a23f6a8abcb9a59a31
tree270c4f2a683cc173ce003813483125046ec880b0
parent61e021f3b86cbbcc04cbe8ac7b7da2b8c94b5e8e
ax25: In ax25_rebuild_header add missing kfree_skb

In the unlikely (impossible?) event that we attempt to transmit
an ax25 packet over a non-ax25 device free the skb so we don't
leak it.

Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: linux-hams@vger.kernel.org
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ax25/ax25_ip.c