]> git.karo-electronics.de Git - karo-tx-linux.git/commit
SNAP: Fix SNAP protocol header accesses.
authorHerbert Xu <herbert@gondor.apana.org.au>
Wed, 22 Aug 2007 04:07:30 +0000 (21:07 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 31 Aug 2007 06:01:50 +0000 (23:01 -0700)
commit6ec3b79f45f813c9957c2a7af25e0e1ec53e6f1a
tree7dc839564c85ae8577cdd02799a1e4ca2357da50
parent8c1bc44eadcf0ef011a29f54a61d979dd84a6bac
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