[PATCH 5.15 175/279] lib: 842: Improve error handling in sw842_compress()