]> git.baikalelectronics.ru Git - kernel.git/commit
[LLC]: skb allocation size for responses
authorJoonwoo Park <joonwpark81@gmail.com>
Tue, 1 Apr 2008 04:02:47 +0000 (21:02 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 Apr 2008 04:02:47 +0000 (21:02 -0700)
commit5ea3a82a4a5f839bc7490703919c37d64a3820fd
tree15de7d2df2fc3a35e0a6b933bb37aefcba2cc3ef
parent7a97ba5642f571d1e541c1b43e675af1003cfce1
[LLC]: skb allocation size for responses

Allocate the skb for llc responses with the received packet size by
using the size adjustable llc_frame_alloc.
Don't allocate useless extra payload.
Cleanup magic numbers.

So, this fixes oops.
Reported by Jim Westfall:
kernel: skb_over_panic: text:c0541fc7 len:1000 put:997 head:c166ac00 data:c166ac2f tail:0xc166b017 end:0xc166ac80 dev:eth0
kernel: ------------[ cut here ]------------
kernel: kernel BUG at net/core/skbuff.c:95!

Signed-off-by: Joonwoo Park <joonwpark81@gmail.com>
Acked-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/llc_pdu.h
include/net/llc_sap.h
net/llc/llc_c_ac.c
net/llc/llc_pdu.c
net/llc/llc_s_ac.c
net/llc/llc_sap.c
net/llc/llc_station.c