block/iscsi: fix memory corruption on iscsi resize
commitd832fb4d66ead62da4af7e44cce34cd939e865e1
authorPeter Lieven <pl@kamp.de>
Fri, 22 Aug 2014 08:08:49 +0000 (22 10:08 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 22 Aug 2014 08:55:22 +0000 (22 10:55 +0200)
tree7e7f3fe685c5bdce7217f75552e8e69049183368
parent13b552c2f43298a42e26d7aec7b58a5c205b75a0
block/iscsi: fix memory corruption on iscsi resize

bs->total_sectors is not yet updated at this point. resulting
in memory corruption if the volume has grown and data is written
to the newly availble areas.

CC: qemu-stable@nongnu.org
Signed-off-by: Peter Lieven <pl@kamp.de>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/iscsi.c