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

Return -errno instead of -1 on errors and add error checks in some
places that didn't have one. Passing things by reference requires more
correct typing, replaced a few off_ts therefore - with a 32-bit off_t
this is even a fix for truncation bugs.

While touching the code, fix even some more memory leaks than in the
other drivers...

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