From: Herbert Xu Date: Tue, 21 Aug 2007 07:06:37 +0000 (-0700) Subject: [SNAP]: Check packet length before reading X-Git-Tag: v2.6.23-rc4~92^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d92a7db710c32db826a00ba9bc7a22e741d5041e;p=pandora-kernel.git [SNAP]: Check packet length before reading The snap_rcv code reads 5 bytes so we should make sure that we have 5 bytes in the head before proceeding. Based on diagnosis and fix by Evgeniy Polyakov, reported by Alan J. Wylie. Patch also kills the skb->sk assignment before kfree_skb since it's redundant. Signed-off-by: Herbert Xu Signed-off-by: David S. Miller --- Reading git-diff-tree failed