]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ax25: Fix NULL pointer dereference and lockup.
authorJarek Poplawski <jarkao2@gmail.com>
Tue, 3 Jun 2008 21:53:46 +0000 (14:53 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 16 Jun 2008 20:19:53 +0000 (13:19 -0700)
commit0121f65abe268ba1cc3a3b9ece0a7467c20512d6
tree094df0375a031ddfce94792d22b0b65fabbb3933
parent7e9402be41bbaa44c56f995b2ebecb123ff5a251
ax25: Fix NULL pointer dereference and lockup.

[ Upstream commit: 7dccf1f4e1696c79bff064c3770867cc53cbc71c ]

There is only one function in AX25 calling skb_append(), and it really
looks suspicious: appends skb after previously enqueued one, but in
the meantime this previous skb could be removed from the queue.

This patch Fixes it the simple way, so this is not fully compatible with
the current method, but testing hasn't shown any problems.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
net/ax25/ax25_subr.c