Skip to contentSkip to conversation

powerpc/boot: Fix check of supported compression methods

PATCH New Antonio Alvarez Feijoo 1 participant 1 message Sep 15, 2025 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc/boot: Fix check of supported compression methods

The current check is bogus and would allow to pass any value with the -Z option.

---
 arch/powerpc/boot/wrapper | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/powerpc/boot/wrapper +1 -1
index 50607bc47d05..8fbc4b98cfce 100755
@@ -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
Signature · 1 line
2.51.0