]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.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)
committerDavid S. Miller <davem@davemloft.net>
Tue, 3 Jun 2008 21:53:46 +0000 (14:53 -0700)
commit7dccf1f4e1696c79bff064c3770867cc53cbc71c
tree42c7c3b152d02345d41f9253bebb0dd12c23e4ce
parent537d59af73d894750cff14f90fe2b6d77fbab15b
ax25: Fix NULL pointer dereference and lockup.

From: Jarek Poplawski <jarkao2@gmail.com>

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>
net/ax25/ax25_subr.c