nbd: fix error handling in the server
bdrv_read and bdrv_write return negative errno values, not -1.
Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
Showing
想要评论请 注册 或 登录
bdrv_read and bdrv_write return negative errno values, not -1.
Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>