]> git.proxmox.com Git - mirror_qemu.git/commit - block/cloop.c
cloop: Fix bdrv_open() error handling
authorKevin Wolf <kwolf@redhat.com>
Fri, 25 Jan 2013 16:07:28 +0000 (17:07 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 1 Feb 2013 13:58:28 +0000 (14:58 +0100)
commit1a60657f5729bac57e70802eb17e67ad793400fd
tree02e1c660208721bcb97a3aefe4427bdb00ccfdb1
parent5b7d7dfd198f06ec5edd0c857291c5035c5c060f
cloop: 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/cloop.c