verify: fix header verification version check
authorJens Axboe <axboe@fb.com>
Mon, 7 Dec 2015 17:45:57 +0000 (10:45 -0700)
committerJens Axboe <axboe@fb.com>
Mon, 7 Dec 2015 17:45:57 +0000 (10:45 -0700)
Signed-off-by: Jens Axboe <axboe@fb.com>
verify.c

index 19bec75a4ec75d29e2af196f4ad41791a97efceb..268c0603aa7dba88a5698577ff8738abb996350e 100644 (file)
--- a/verify.c
+++ b/verify.c
@@ -1603,7 +1603,7 @@ int verify_state_hdr(struct verify_state_hdr *hdr, struct thread_io_list *s,
        hdr->size = le64_to_cpu(hdr->size);
        hdr->crc = le64_to_cpu(hdr->crc);
 
        hdr->size = le64_to_cpu(hdr->size);
        hdr->crc = le64_to_cpu(hdr->crc);
 
-       if (hdr->version != VSTATE_HDR_VERSION ||
+       if (hdr->version != VSTATE_HDR_VERSION &&
            hdr->version != VSTATE_HDR_VERSION_V1)
                return 1;
 
            hdr->version != VSTATE_HDR_VERSION_V1)
                return 1;