[PATCH 6.14 387/731] lib: 842: Improve error handling in sw842_compress()