--- zzzz-none-000/linux-2.6.39.4/fs/squashfs/xz_wrapper.c 2011-08-03 19:43:28.000000000 +0000 +++ puma6-atom-6490-729/linux-2.6.39.4/fs/squashfs/xz_wrapper.c 2021-11-10 13:38:17.000000000 +0000 @@ -58,7 +58,7 @@ goto failed; } - dict_size = le32_to_cpu(comp_opts->dictionary_size); + dict_size = sqsh32_to_cpu(comp_opts->dictionary_size); /* the dictionary size should be 2^n or 2^n+2^(n+1) */ n = ffs(dict_size) - 1; @@ -148,7 +148,7 @@ } while (xz_err == XZ_OK); if (xz_err != XZ_STREAM_END) { - ERROR("xz_dec_run error, data probably corrupt\n"); + ERROR("xz_dec_run error, data probably corrupt (xz_err %d)\n", xz_err); goto release_mutex; }