]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
[PATCH] SNAP: Fix SNAP protocol header accesses.
authorHerbert Xu <herbert@gondor.apana.org.au>
Wed, 22 Aug 2007 04:07:30 +0000 (21:07 -0700)
committerWilly Tarreau <w@1wt.eu>
Wed, 17 Oct 2007 19:30:24 +0000 (21:30 +0200)
commit28c191e3e4ba5bbd5f163e43ccd0d94ac2dcf6c7
treece4e5e9b5ab1666b1845c7581f8bed868a1b9c37
parent28d0ce2de6c377dd891cd5bb385da777478e0d33
[PATCH] SNAP: Fix SNAP protocol header accesses.

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 <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/802/psnap.c