Fam Zheng b8afb520e4 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>
2014-04-22 11:57:02 +02:00
..
2014-04-17 21:34:04 +01:00
2014-02-21 22:29:50 +01:00
2014-04-03 13:44:25 +01:00
2014-03-31 19:28:38 +02:00
2014-03-27 15:18:45 +05:30