diff options
author | Wentao Liang <vulab@iscas.ac.cn> | 2025-04-02 21:45:44 +0800 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2025-04-03 12:11:42 -0400 |
commit | 9364f17ba40422d2661da295bb0da68ca87cc57e (patch) | |
tree | 1d12f4f50d8ec65a5f177ff9bb8609c3d1007e9e /scripts/gdb/linux/utils.py | |
parent | a07c43e6c2ff4cbdba7abf8d533b2faf19fa2287 (diff) |
bcachefs: Add error handling for zlib_deflateInit2()
In attempt_compress(), the return value of zlib_deflateInit2() needs to be
checked. A proper implementation can be found in pstore_compress().
Add an error check and return 0 immediately if the initialzation fails.
Fixes: 986e9842fb68 ("bcachefs: Compression levels")
Signed-off-by: Wentao Liang <vulab@iscas.ac.cn>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions