]> git.proxmox.com Git - qemu.git/commit
hw: Fix return value check for bdrv_read, bdrv_write
authorStefan Weil <sw@weilnetz.de>
Sun, 23 Sep 2012 06:51:01 +0000 (08:51 +0200)
committerStefan Hajnoczi <stefanha@gmail.com>
Fri, 5 Oct 2012 11:54:35 +0000 (13:54 +0200)
commit7a608f562ebd91e811ed0b725e528c894e4f19c4
tree19cce17ab0e39535b22c3b6732282efe514d5e1c
parenta14c74928ba1fdaada515717f4d3c3fa3275d6f7
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: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Stefan Hajnoczi <stefanha@gmail.com>
hw/nand.c
hw/onenand.c
hw/sd.c