mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-18 17:14:28 +00:00
posix_memalign() returns an error code on failure and does not guarantee setting the pointer to NULL. Check the return value instead of the pointer. Since posix_memalign() does not set errno, assign it explicitly so pr_perror() prints the correct message. Negate the return code instead of hardcoding -ENOMEM to preserve the actual error (e.g. EINVAL for bad alignment). In amdgpu_plugin_drm_dump_file(), replace break with cleanup and goto exit so per-BO resources are freed on failure. Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org> |
||
|---|---|---|
| .. | ||
| amdgpu | ||
| cuda | ||