[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20250915152530.40256-1-antonio.feijoo@suse.com>
Date: Mon, 15 Sep 2025 17:25:30 +0200
From: Antonio Alvarez Feijoo <antonio.feijoo@...e.com>
To: Madhavan Srinivasan <maddy@...ux.ibm.com>,
Michael Ellerman <mpe@...erman.id.au>
Cc: Nicholas Piggin <npiggin@...il.com>,
Christophe Leroy <christophe.leroy@...roup.eu>,
linux-kernel@...r.kernel.org,
linuxppc-dev@...ts.ozlabs.org,
Antonio Alvarez Feijoo <antonio.feijoo@...e.com>
Subject: [PATCH] powerpc/boot: Fix check of supported compression methods
The current check is bogus and would allow to pass any value with the -Z
option.
Signed-off-by: Antonio Alvarez Feijoo <antonio.feijoo@...e.com>
---
arch/powerpc/boot/wrapper | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/powerpc/boot/wrapper b/arch/powerpc/boot/wrapper
index 50607bc47d05..8fbc4b98cfce 100755
--- a/arch/powerpc/boot/wrapper
+++ b/arch/powerpc/boot/wrapper
@@ -148,7 +148,7 @@ while [ "$#" -gt 0 ]; do
-Z)
shift
[ "$#" -gt 0 ] || usage
- [ "$1" != "gz" -o "$1" != "xz" -o "$1" != "lzma" -o "$1" != "lzo" -o "$1" != "none" ] || usage
+ [ "$1" = "gz" -o "$1" = "xz" -o "$1" = "lzma" -o "$1" = "lzo" -o "$1" = "none" ] || usage
compression=".$1"
uboot_comp=$1
--
2.51.0
Powered by blists - more mailing lists