diff options
author | 2014-04-16 09:34:30 +0800 | |
---|---|---|
committer | 2014-04-22 11:57:02 +0200 | |
commit | b8afb520e479e693c227aa39c2fb7670743e104f (patch) | |
tree | 839fbe93b1b9398a61db63acd89b1e68dbe816de /ui/input-keymap.c | |
parent | vmdk: Fix %d and %lld to PRI* in format strings (diff) | |
download | qemu-b8afb520e479e693c227aa39c2fb7670743e104f.tar.xz qemu-b8afb520e479e693c227aa39c2fb7670743e104f.zip |
block: Handle error of bdrv_getlength in bdrv_create_dirty_bitmap
bdrv_getlength could fail, check the return value before using it.
Return NULL and set errno if it fails. Callers are updated to handle
the error case.
Signed-off-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'ui/input-keymap.c')
0 files changed, 0 insertions, 0 deletions