[PATCH 6.1 062/204] lib: 842: Improve error handling in sw842_compress()