Patch "raw: remove unused variables from raw6_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: remove unused variables from raw6_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-remove-unused-variables-from-raw6_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.


>From c4fceb46add65481ef0dfb79cad24c3c269b4cad Mon Sep 17 00:00:00 2001
From: Eric Dumazet <edumazet@xxxxxxxxxx>
Date: Wed, 22 Jun 2022 03:23:03 +0000
Subject: raw: remove unused variables from raw6_icmp_error()

From: Eric Dumazet <edumazet@xxxxxxxxxx>

commit c4fceb46add65481ef0dfb79cad24c3c269b4cad upstream.

saddr and daddr are set but not used.

Fixes: ba44f8182ec2 ("raw: use more conventional iterators")
Reported-by: kernel test robot <lkp@xxxxxxxxx>
Signed-off-by: Eric Dumazet <edumazet@xxxxxxxxxx>
Acked-by: Jonathan Lemon <jonathan.lemon@xxxxxxxxx>
Link: https://lore.kernel.org/r/20220622032303.159394-1-edumazet@xxxxxxxxxx
Signed-off-by: Jakub Kicinski <kuba@xxxxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
---
 net/ipv6/raw.c |    3 ---
 1 file changed, 3 deletions(-)

--- a/net/ipv6/raw.c
+++ b/net/ipv6/raw.c
@@ -332,7 +332,6 @@ static void rawv6_err(struct sock *sk, s
 void raw6_icmp_error(struct sk_buff *skb, int nexthdr,
 		u8 type, u8 code, int inner_offset, __be32 info)
 {
-	const struct in6_addr *saddr, *daddr;
 	struct net *net = dev_net(skb->dev);
 	struct hlist_nulls_head *hlist;
 	struct hlist_nulls_node *hnode;
@@ -345,8 +344,6 @@ void raw6_icmp_error(struct sk_buff *skb
 	hlist_nulls_for_each_entry(sk, hnode, hlist, sk_nulls_node) {
 		/* Note: ipv6_hdr(skb) != skb->data */
 		const struct ipv6hdr *ip6h = (const struct ipv6hdr *)skb->data;
-		saddr = &ip6h->saddr;
-		daddr = &ip6h->daddr;
 
 		if (!raw_v6_match(net, sk, nexthdr, &ip6h->saddr, &ip6h->daddr,
 				  inet6_iif(skb), inet6_iif(skb)))


Patches currently in stable-queue which might be from edumazet@xxxxxxxxxx are

queue-5.19/ping-convert-to-rcu-lookups-get-rid-of-rwlock.patch
queue-5.19/batman-adv-tracing-use-the-new-__vstring-helper.patch
queue-5.19/epoll-autoremove-wakers-even-more-aggressively.patch
queue-5.19/tcp-fix-over-estimation-in-sk_forced_mem_schedule.patch
queue-5.19/tcp-fix-possible-freeze-in-tx-path-under-memory-pres.patch
queue-5.19/raw-fix-a-typo-in-raw_icmp_error.patch
queue-5.19/raw-convert-raw-sockets-to-rcu.patch
queue-5.19/raw-use-more-conventional-iterators.patch
queue-5.19/ax25-fix-incorrect-dev_tracker-usage.patch
queue-5.19/tracing-events-add-__vstring-and-__assign_vstr-helpe.patch
queue-5.19/tcp-make-retransmitted-skb-fit-into-the-send-window.patch
queue-5.19/net-rose-fix-netdev-reference-changes.patch
queue-5.19/raw-remove-unused-variables-from-raw6_icmp_error.patch
queue-5.19/net-fix-sk_wmem_schedule-and-sk_rmem_schedule-errors.patch



[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