]> err.no Git - linux-2.6/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)
commitf83f1768f833cb45bc93429fdc552252a4f55ac3
tree15de7d2df2fc3a35e0a6b933bb37aefcba2cc3ef
parentb50660f1fe4ebd6129064e4fba0bd882b60c2425
[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