* [PATCH] powerpc/boot: Fix check of supported compression methods
@ 2025-09-15 15:25 Antonio Alvarez Feijoo
0 siblings, 0 replies; only message in thread
From: Antonio Alvarez Feijoo @ 2025-09-15 15:25 UTC (permalink / raw)
To: Madhavan Srinivasan, Michael Ellerman
Cc: Nicholas Piggin, Christophe Leroy, linux-kernel, linuxppc-dev,
Antonio Alvarez Feijoo
The current check is bogus and would allow to pass any value with the -Z
option.
Signed-off-by: Antonio Alvarez Feijoo <antonio.feijoo@suse.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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-09-15 15:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-09-15 15:25 [PATCH] powerpc/boot: Fix check of supported compression methods Antonio Alvarez Feijoo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®