This is a note to let you know that I've just added the patch titled

    ip: use ip_hdr() in __ip_make_skb() to retrieve IP header

to the 3.11-stable tree which can be found at:
    
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     ip-use-ip_hdr-in-__ip_make_skb-to-retrieve-ip-header.patch
and it can be found in the queue-3.11 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <[email protected]> know about it.


>From 1f1d004aa8782a010bb32a2c42050e522dee38f0 Mon Sep 17 00:00:00 2001
From: Ansis Atteka <[email protected]>
Date: Wed, 18 Sep 2013 15:29:52 -0700
Subject: ip: use ip_hdr() in __ip_make_skb() to retrieve IP header

From: Ansis Atteka <[email protected]>

[ Upstream commit 749154aa56b57652a282cbde57a57abc278d1205 ]

skb->data already points to IP header, but for the sake of
consistency we can also use ip_hdr() to retrieve it.

Signed-off-by: Ansis Atteka <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
---
 net/ipv4/ip_output.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/net/ipv4/ip_output.c
+++ b/net/ipv4/ip_output.c
@@ -1316,7 +1316,7 @@ struct sk_buff *__ip_make_skb(struct soc
        else
                ttl = ip_select_ttl(inet, &rt->dst);
 
-       iph = (struct iphdr *)skb->data;
+       iph = ip_hdr(skb);
        iph->version = 4;
        iph->ihl = 5;
        iph->tos = inet->tos;


Patches currently in stable-queue which might be from [email protected] are

queue-3.11/ip-generate-unique-ip-identificator-if-local-fragmentation-is-allowed.patch
queue-3.11/ip-use-ip_hdr-in-__ip_make_skb-to-retrieve-ip-header.patch
--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to