tree 5bf7d25db72b20d0781190c0e3c72cea94a2ecb3
parent 48a5346b315183ce482df0909234faf97fa41611
author Hal Rosenstock <[EMAIL PROTECTED]> Sun, 17 Apr 2005 05:26:05 -0700
committer Linus Torvalds <[EMAIL PROTECTED]> Sun, 17 Apr 2005 05:26:05 -0700

[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 <[EMAIL PROTECTED]>
Signed-off-by: Roland Dreier <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>

 infiniband/ulp/ipoib/ipoib_ib.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

Index: drivers/infiniband/ulp/ipoib/ipoib_ib.c
===================================================================
--- 
a21b3ea586b7754f632d9c9e088e6dbc9932e6df/drivers/infiniband/ulp/ipoib/ipoib_ib.c
  (mode:100644 sha1:c5a1d45e0ac527f12b7ea0c5b96d6c64f4683019)
+++ 
5bf7d25db72b20d0781190c0e3c72cea94a2ecb3/drivers/infiniband/ulp/ipoib/ipoib_ib.c
  (mode:100644 sha1:8238766746b2c1c34d70768167541d7dd113460a)
@@ -201,7 +201,7 @@
                        if (wc->slid != priv->local_lid ||
                            wc->src_qp != priv->qp->qp_num) {
                                skb->protocol = ((struct ipoib_header *) 
skb->data)->proto;
-
+                               skb->mac.raw = skb->data;
                                skb_pull(skb, IPOIB_ENCAP_LEN);
 
                                dev->last_rx = jiffies;
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to