Setting of errno is wrong in xenhypfs_read_raw(), fix it.
Reported-by: George Dunlap <george.dunlap@citrix.com>
Fixes: 86234eafb9529 ("libs: add libxenhypfs")
Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Paul Durrant <paul@xen.org>
Release-acked-by: Paul Durrant <paul@xen.org>
Acked-by: Wei Liu <wl@xen.org>
if (!ret)
break;
- if (ret != ENOBUFS) {
- errno = -ret;
+ if (errno != ENOBUFS)
goto out;
- }
}
content = malloc(entry->content_len);