Blame SOURCES/0009-uapi-netfilter-Avoid-undefined-left-shift-in-xt_sctp.patch

576484
From fe1ac5eaa8ae482c9112aed6b89f9f2e529f4516 Mon Sep 17 00:00:00 2001
576484
From: Phil Sutter <psutter@redhat.com>
576484
Date: Tue, 10 Dec 2019 12:27:13 +0100
576484
Subject: [PATCH] uapi: netfilter: Avoid undefined left-shift in xt_sctp.h
576484
576484
This is a backport of kernel commit 164166558aace ("netfilter: uapi:
576484
Avoid undefined left-shift in xt_sctp.h").
576484
576484
Signed-off-by: Phil Sutter <psutter@redhat.com>
576484
---
576484
 include/linux/netfilter/xt_sctp.h | 6 +++---
576484
 1 file changed, 3 insertions(+), 3 deletions(-)
576484
576484
diff --git a/include/linux/netfilter/xt_sctp.h b/include/linux/netfilter/xt_sctp.h
576484
index a501e6196905d..5b28525a2482a 100644
576484
--- a/include/linux/netfilter/xt_sctp.h
576484
+++ b/include/linux/netfilter/xt_sctp.h
576484
@@ -40,19 +40,19 @@ struct xt_sctp_info {
576484
 #define SCTP_CHUNKMAP_SET(chunkmap, type) 		\
576484
 	do { 						\
576484
 		(chunkmap)[type / bytes(__u32)] |= 	\
576484
-			1 << (type % bytes(__u32));	\
576484
+			1u << (type % bytes(__u32));	\
576484
 	} while (0)
576484
 
576484
 #define SCTP_CHUNKMAP_CLEAR(chunkmap, type)		 	\
576484
 	do {							\
576484
 		(chunkmap)[type / bytes(__u32)] &= 		\
576484
-			~(1 << (type % bytes(__u32)));	\
576484
+			~(1u << (type % bytes(__u32)));	\
576484
 	} while (0)
576484
 
576484
 #define SCTP_CHUNKMAP_IS_SET(chunkmap, type) 			\
576484
 ({								\
576484
 	((chunkmap)[type / bytes (__u32)] & 		\
576484
-		(1 << (type % bytes (__u32)))) ? 1: 0;	\
576484
+		(1u << (type % bytes (__u32)))) ? 1: 0;	\
576484
 })
576484
 
576484
 #define SCTP_CHUNKMAP_RESET(chunkmap) \
576484
-- 
576484
2.24.0
576484