[PATCH 6.6 076/268] lib: 842: Improve error handling in sw842_compress()