Vladimir Sementsov-Ogievskiy
0df62f45c1
block/backup-top: fix failure path
...
We can't access top after call bdrv_backup_top_drop, as it is already
freed at this time.
Also, no needs to unref target child by hand, it will be unrefed on
bdrv_close() automatically.
So, just do bdrv_backup_top_drop if append succeed and one bdrv_unref
otherwise.
Note, that in !appended case bdrv_unref(top) moved into drained section
on source. It doesn't really matter, but just for code simplicity.
Fixes: 7df7868b96404
Cc: qemu-stable@nongnu.org # v4.2.0
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Message-id: 20200121142802.21467-2-vsementsov@virtuozzo.com
Signed-off-by: Max Reitz <mreitz@redhat.com>
2020-02-06 13:47:45 +01:00
..
2019-10-10 10:56:18 +02:00
2019-10-10 10:56:17 +02:00
2020-02-06 13:47:45 +01:00
2019-10-10 10:56:18 +02:00
2020-01-27 17:19:53 +01:00
2020-01-06 13:43:06 +01:00
2019-06-12 13:18:33 +02:00
2019-10-14 17:12:48 +02:00
2019-06-12 13:18:33 +02:00
2019-10-28 12:00:07 +01:00
2019-11-04 09:21:45 +01:00
2019-09-16 14:48:30 +02:00
2019-09-16 14:48:30 +02:00
2019-10-28 12:00:07 +01:00
2019-10-28 11:59:51 +01:00
2019-09-13 12:18:37 +02:00
2019-10-28 12:05:30 +01:00
2019-05-13 08:58:55 +02:00
2019-09-16 15:31:12 +02:00
2019-11-18 16:01:34 -06:00
2019-06-12 13:20:20 +02:00
2018-12-14 11:52:40 +01:00
2019-09-16 14:48:30 +02:00
2019-06-12 13:20:20 +02:00
2020-01-30 20:59:42 +00:00
2019-10-28 12:00:07 +01:00
2020-01-06 13:43:07 +01:00
2019-10-28 12:00:07 +01:00
2020-01-30 20:59:42 +00:00
2020-01-30 20:59:41 +00:00
2019-06-12 13:18:33 +02:00
2020-01-27 17:19:53 +01:00
2020-01-13 16:41:45 +00:00
2020-01-30 20:59:41 +00:00
2019-10-28 12:00:07 +01:00
2019-12-18 08:43:19 +01:00
2019-10-28 12:00:07 +01:00
2019-10-14 17:12:48 +02:00
2019-10-28 11:34:35 +01:00
2019-10-28 14:40:01 +00:00
2019-10-10 10:56:18 +02:00
2020-01-06 13:43:06 +01:00
2019-10-26 15:38:06 +02:00
2020-02-06 13:47:45 +01:00
2020-02-06 13:47:45 +01:00
2020-02-06 13:47:45 +01:00
2019-09-16 15:36:22 +02:00
2020-02-06 13:47:45 +01:00
2019-11-07 14:37:46 +01:00
2019-10-28 12:00:07 +01:00
2019-04-30 15:29:00 +02:00
2019-04-30 15:29:00 +02:00
2019-10-28 12:08:45 +01:00
2019-04-30 15:29:00 +02:00
2019-06-12 13:18:33 +02:00
2019-10-28 12:05:30 +01:00
2019-10-28 12:00:07 +01:00
2019-10-10 10:56:18 +02:00
2019-10-28 12:00:07 +01:00
2019-12-18 08:43:19 +01:00
2019-10-28 12:00:07 +01:00
2019-09-10 08:58:43 +02:00
2020-01-06 13:43:06 +01:00
2019-06-12 13:18:33 +02:00
2020-01-30 20:59:42 +00:00
2019-10-28 12:00:07 +01:00
2019-06-12 13:20:20 +02:00
2019-10-28 12:00:07 +01:00
2019-10-28 12:00:07 +01:00
2019-04-30 15:29:00 +02:00
2019-10-28 12:00:07 +01:00
2019-10-28 12:00:07 +01:00
2019-09-16 14:48:30 +02:00
2019-10-14 17:12:48 +02:00
2019-06-12 13:18:33 +02:00
2018-08-28 18:21:38 +02:00