diff options
| author | Gao Xiang <hsiangkao@linux.alibaba.com> | 2025-11-27 15:31:19 +0800 |
|---|---|---|
| committer | Gao Xiang <hsiangkao@linux.alibaba.com> | 2025-11-28 22:00:07 +0800 |
| commit | 831faabed8129246c9802af9ad9581a2c1e9eeb9 (patch) | |
| tree | 4f58c14af78725f3fe51f280caa8eab981a34db6 /scripts/livepatch/init.c | |
| parent | 9ae77198d4815c63fc8ebacc659c71d150d1e51b (diff) | |
erofs: improve decompression error reporting
Change the return type of decompress() from `int` to `const char *` to
provide more informative error diagnostics:
- A NULL return indicates successful decompression;
- If IS_ERR(ptr) is true, the return value encodes a standard negative
errno (e.g., -ENOMEM, -EOPNOTSUPP) identifying the specific error;
- Otherwise, a non-NULL return points to a human-readable error string,
and the corresponding error code should be treated as -EFSCORRUPTED.
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Diffstat (limited to 'scripts/livepatch/init.c')
0 files changed, 0 insertions, 0 deletions
