Re: [Qemu-devel] [PATCH] qcow2: Free only newly allocated clusters on error

2013-09-27 Thread Kevin Wolf
Am 27.09.2013 um 10:21 hat Max Reitz geschrieben: > In expand_zero_clusters_in_l1, a new cluster is only allocated if it was > not already preallocated. On error, such preallocated clusters should > not be freed, but only the newly allocated ones. > > Signed-off-by: Max Reitz Thanks, applied to

[Qemu-devel] [PATCH] qcow2: Free only newly allocated clusters on error

2013-09-27 Thread Max Reitz
In expand_zero_clusters_in_l1, a new cluster is only allocated if it was not already preallocated. On error, such preallocated clusters should not be freed, but only the newly allocated ones. Signed-off-by: Max Reitz --- block/qcow2-cluster.c | 16 ++-- 1 file changed, 10 insertions(