]> git.ipfire.org Git - thirdparty/kmod.git/commit
libkmod: Fix file error handling regression
authorTobias Stoeckmann <tobias@stoeckmann.org>
Wed, 13 Nov 2024 22:32:55 +0000 (23:32 +0100)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Tue, 19 Nov 2024 06:24:58 +0000 (00:24 -0600)
commitfeb3108ce5ca57d2ed1e241b0acf39315c7c1251
treee1043380798f253d00bb5d04f45f7ec061f496c1
parent088e2e2d69bee95f2b5c6b1599ea8bc633f8f440
libkmod: Fix file error handling regression

The propagation of errors from loading function through errno must make
sure that errno is positive, otherwise errors are not correctly spotted.

Fixes: 81e5c797 ("libkmod: propagate {zstd,xz,zlib}_load errors")
Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/242
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
libkmod/libkmod-file-zstd.c
libkmod/libkmod-file.c