tree 56a1bf46c1804ab89c5201aca17e51a1f8a32970
parent 2913228d4c4cee2c01482fd676bbf6b1df681f55
author Hal Rosenstock <[EMAIL PROTECTED]> Tue Apr 12 08:26:32 2005
committer Linus Torvalds <[EMAIL PROTECTED]> Tue Apr 12 08:26:32 2005

[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]>

 ipoib_ib.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

Index: drivers/infiniband/ulp/ipoib/ipoib_ib.c
===================================================================
--- 
4a3104ae491f0af76cb4a664bf72e95d084d9685/drivers/infiniband/ulp/ipoib/ipoib_ib.c
  (mode:100644 sha1:81aafa06dd0a94d35cd9ada30e1a97178d780658)
+++ 
56a1bf46c1804ab89c5201aca17e51a1f8a32970/drivers/infiniband/ulp/ipoib/ipoib_ib.c
  (mode:100644 sha1:a03810dc7183a4ae98aa1ce7a13f2813beb2b71a)
@@ -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