hw: Fix return value check for bdrv_read, bdrv_write
Those functions return -errno in case of an error. The old code would typically only detect EPERM (1) errors. Signed-off-by: NStefan Weil <sw@weilnetz.de> Signed-off-by: NStefan Hajnoczi <stefanha@gmail.com> (cherry picked from commit 7a608f56) Signed-off-by: NMichael Roth <mdroth@linux.vnet.ibm.com>
Showing
想要评论请 注册 或 登录