diff options
author | Harshit Mogalapalli <harshit.m.mogalapalli@oracle.com> | 2024-02-12 11:25:04 +0100 |
---|---|---|
committer | Mike Snitzer <snitzer@kernel.org> | 2024-03-01 15:25:09 +0100 |
commit | f304f6b443a7d5910ac1e29094d9eee5fd767868 (patch) | |
tree | ebe27597d7f98f573a6dd8f0344e63fb6aab12f6 | |
parent | dm vdo logger: update logging to start with "device-mapper: vdo" (diff) | |
download | linux-f304f6b443a7d5910ac1e29094d9eee5fd767868.tar.xz linux-f304f6b443a7d5910ac1e29094d9eee5fd767868.zip |
dm vdo volume-index: fix an assert statement in start_restoring_volume_sub_index()
Use "==" instead of "=" in ASSERT() statement.
Fixes: ef074a31e88e ("dm vdo: implement the volume index")
Signed-off-by: Harshit Mogalapalli <harshit.m.mogalapalli@oracle.com>
Signed-off-by: Susan LeGendre-McGhee <slegendr@redhat.com>
Signed-off-by: Matthew Sakai <msakai@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@kernel.org>
Diffstat (limited to '')
-rw-r--r-- | drivers/md/dm-vdo/volume-index.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-vdo/volume-index.c b/drivers/md/dm-vdo/volume-index.c index 8731ea1662b1..eebc19fe7d6f 100644 --- a/drivers/md/dm-vdo/volume-index.c +++ b/drivers/md/dm-vdo/volume-index.c @@ -834,7 +834,7 @@ static int start_restoring_volume_sub_index(struct volume_sub_index *sub_index, decode_u32_le(buffer, &offset, &header.first_list); decode_u32_le(buffer, &offset, &header.list_count); - result = ASSERT(offset = sizeof(buffer), + result = ASSERT(offset == sizeof(buffer), "%zu bytes decoded of %zu expected", offset, sizeof(buffer)); if (result != UDS_SUCCESS) |