[PATCH 6.13 156/499] lib: 842: Improve error handling in sw842_compress()