Patch "raw: Fix mixed declarations error in raw_icmp_error()." has been added to the 5.19-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

    raw: Fix mixed declarations error in raw_icmp_error().

to the 5.19-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:
     raw-fix-mixed-declarations-error-in-raw_icmp_error.patch
and it can be found in the queue-5.19 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit c460db51f7fcc24270edff8b6d7399506a9db5d9
Author: Kuniyuki Iwashima <kuniyu@xxxxxxxxxx>
Date:   Sun Jun 19 16:29:26 2022 -0700

    raw: Fix mixed declarations error in raw_icmp_error().
    
    [ Upstream commit 5da39e31b1b0eb62b8ed369ad9615da850239e9e ]
    
    The trailing semicolon causes a compiler error, so let's remove it.
    
    net/ipv4/raw.c: In function ‘raw_icmp_error’:
    net/ipv4/raw.c:266:2: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement]
      266 |  struct hlist_nulls_head *hlist;
          |  ^~~~~~
    
    Fixes: ba44f8182ec2 ("raw: use more conventional iterators")
    Signed-off-by: Kuniyuki Iwashima <kuniyu@xxxxxxxxxx>
    Signed-off-by: David S. Miller <davem@xxxxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/net/ipv4/raw.c b/net/ipv4/raw.c
index d28bf0b901a2..b3b255db9021 100644
--- a/net/ipv4/raw.c
+++ b/net/ipv4/raw.c
@@ -262,7 +262,7 @@ static void raw_err(struct sock *sk, struct sk_buff *skb, u32 info)
 
 void raw_icmp_error(struct sk_buff *skb, int protocol, u32 info)
 {
-	struct net *net = dev_net(skb->dev);;
+	struct net *net = dev_net(skb->dev);
 	struct hlist_nulls_head *hlist;
 	struct hlist_nulls_node *hnode;
 	int dif = skb->dev->ifindex;



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux