parallels: Fix bdrv_open() error handling
commit46536235d80a012cc4286b71426cafad0c7f41f0
authorKevin Wolf <kwolf@redhat.com>
Fri, 25 Jan 2013 16:07:32 +0000 (25 17:07 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 1 Feb 2013 13:58:29 +0000 (1 14:58 +0100)
tree3b821b0c326f44e33d2e4572c364fa49b54b0324
parent4f8aa2e19f88fe0dfaf8240ae666de7fd18dd1d0
parallels: Fix bdrv_open() error handling

Return -errno instead of -1 on errors. Hey, no memory leak to fix here
while we're touching it!

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