]> git.proxmox.com Git - qemu.git/commit
vpc: Fix bdrv_open() error handling
authorKevin Wolf <kwolf@redhat.com>
Fri, 25 Jan 2013 16:07:29 +0000 (17:07 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 1 Feb 2013 13:58:28 +0000 (14:58 +0100)
commit59294e465953ffb07d42dc61c827bb98cc0ca423
tree0f428d59372759dab65c46a1cb1371ceffbb1516
parent1a60657f5729bac57e70802eb17e67ad793400fd
vpc: Fix bdrv_open() error handling

Return -errno instead of -1 on errors. While touching the
code, fix a memory leak.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/vpc.c