[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [FIX V2] block: Fix device snapshots broken by the block fi
From: |
Benoît Canet |
Subject: |
[Qemu-devel] [FIX V2] block: Fix device snapshots broken by the block filter snapshots patchset. |
Date: |
Thu, 13 Feb 2014 02:51:37 +0100 |
Signed-off-by: Benoit Canet <address@hidden>
---
block.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/block.c b/block.c
index 70d7f35..d9553ba 100644
--- a/block.c
+++ b/block.c
@@ -5419,11 +5419,7 @@ bool bdrv_is_first_non_filter(BlockDriverState
*candidate)
QTAILQ_FOREACH(bs, &bdrv_states, device_list) {
bool perm;
- if (!bs->file) {
- continue;
- }
-
- perm = bdrv_recurse_is_first_non_filter(bs->file, candidate);
+ perm = bdrv_recurse_is_first_non_filter(bs, candidate);
/* candidate is the first non filter */
if (perm) {
--
1.8.3.2