mirror of https://github.com/OpenIPC/firmware.git
34 lines
1.1 KiB
Diff
34 lines
1.1 KiB
Diff
diff -drupN a/fs/squashfs/decompressor.c b/fs/squashfs/decompressor.c
|
|
--- a/fs/squashfs/decompressor.c 2017-10-21 18:09:07.000000000 +0300
|
|
+++ b/fs/squashfs/decompressor.c 2022-06-09 05:02:35.000000000 +0300
|
|
@@ -41,6 +41,12 @@ static const struct squashfs_decompresso
|
|
NULL, NULL, NULL, NULL, LZMA_COMPRESSION, "lzma", 0
|
|
};
|
|
|
|
+#ifndef CONFIG_SQUASHFS_LZMA
|
|
+ const struct squashfs_decompressor squashfs_lzma_comp_ops = {
|
|
+ NULL, NULL, NULL, NULL, LZMA_COMPRESSION, "lzma", 0
|
|
+};
|
|
+#endif
|
|
+
|
|
#ifndef CONFIG_SQUASHFS_LZ4
|
|
static const struct squashfs_decompressor squashfs_lz4_comp_ops = {
|
|
NULL, NULL, NULL, NULL, LZ4_COMPRESSION, "lz4", 0
|
|
@@ -74,7 +80,7 @@ static const struct squashfs_decompresso
|
|
&squashfs_lz4_comp_ops,
|
|
&squashfs_lzo_comp_ops,
|
|
&squashfs_xz_comp_ops,
|
|
- &squashfs_lzma_unsupported_comp_ops,
|
|
+ &squashfs_lzma_comp_ops,
|
|
&squashfs_unknown_comp_ops
|
|
};
|
|
|
|
@@ -139,7 +145,6 @@ void *squashfs_decompressor_setup(struct
|
|
|
|
if (IS_ERR(comp_opts))
|
|
return comp_opts;
|
|
-
|
|
stream = squashfs_decompressor_create(msblk, comp_opts);
|
|
if (IS_ERR(stream))
|
|
kfree(comp_opts);
|