]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
AX25 ax25_out: check skb for NULL in ax25_kick()
authorJarek Poplawski <jarkao2@gmail.com>
Mon, 7 Apr 2008 06:35:31 +0000 (23:35 -0700)
committerChris Wright <chrisw@sous-sol.org>
Sat, 19 Apr 2008 01:53:24 +0000 (18:53 -0700)
commit0003f278998a59e72784048d7484e4a998ceab3d
treef5da86022f20f739ce69dcfed4c9c3dfd9ddd26e
parentb245c3b43439c715e33b57ca9b663123812dd208
AX25 ax25_out: check skb for NULL in ax25_kick()

Upstream commit: f47b7257c7368698eabff6fd7b340071932af640

According to some OOPS reports ax25_kick tries to clone NULL skbs
sometimes. It looks like a race with ax25_clear_queues(). Probably
there is no need to add more than a simple check for this yet.
Another report suggested there are probably also cases where ax25
->paclen == 0 can happen in ax25_output(); this wasn't confirmed
during testing but let's leave this debugging check for some time.

Reported-and-tested-by: Jann Traschewski <jann@gmx.de>
Signed-off-by: Jarek Poplawski <jarkao2@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
net/ax25/ax25_out.c