]> git.baikalelectronics.ru Git - kernel.git/commit
[AX25] ax25_out: check skb for NULL in ax25_kick()
authorJarek Poplawski <jarkao2@gmail.com>
Mon, 18 Feb 2008 06:31:19 +0000 (22:31 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 18 Feb 2008 06:31:19 +0000 (22:31 -0800)
commit4c2e50970f2d5776060d3107f721b7155ec11f07
treed3733ff661cda7c00478348293810b3aeec6a1af
parent7c8d489fb42e50f551a5fb886d9422b62b4b3cb5
[AX25] ax25_out: check skb for NULL in ax25_kick()

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