mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-23 01:59:04 +00:00
open_img_file() can return NULL after a read_fp() or write_fp() failure without setting errno. The openat() and fdopen() paths set errno, but the read/write path does not, so callers using -errno get zero or a stale value. Set errno to EIO on this path so errno is always valid when the function returns NULL. Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org> |
||
|---|---|---|
| .. | ||
| amdgpu | ||
| cuda | ||