[PATCH 5.4 103/154] lib: 842: Improve error handling in sw842_compress()