[PATCH] IPoIB: set skb->mac.raw on receive
authorHal Rosenstock <halr@voltaire.com>
Sat, 16 Apr 2005 22:26:05 +0000 (15:26 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sat, 16 Apr 2005 22:26:05 +0000 (15:26 -0700)
commit62241eb497721be7640e5d9330e60f4a88a4db46
tree5bf7d25db72b20d0781190c0e3c72cea94a2ecb3
parent48a5346b315183ce482df0909234faf97fa41611
[PATCH] IPoIB: set skb->mac.raw on receive

Set skb->mac.raw on receive.  This fixes crashes when this is
dereferenced, for example by netfilter or when PF_PACKET is used.

Signed-off-by: Hal Rosenstock <halr@voltaire.com>
Signed-off-by: Roland Dreier <roland@topspin.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/infiniband/ulp/ipoib/ipoib_ib.c