From d60fa400e40f5e290473c6c32ebab35a72043a0d Mon Sep 17 00:00:00 2001 From: Konrad Sztyber Date: Fri, 23 Jul 2021 12:02:36 +0200 Subject: [PATCH] lib/blob: add missing dereference in blob_get_snapshot_and_clone_entries The assertion should verify that a clone has been found. Without the dereference, it makes no sense, as that pointer is dereferenced earlier. Signed-off-by: Konrad Sztyber Change-Id: I67fa17b33df6d507822a17ffc221a6d360985646 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/8919 Community-CI: Mellanox Build Bot Community-CI: Broadcom CI Tested-by: SPDK CI Jenkins Reviewed-by: Ben Walker Reviewed-by: Tomasz Zawadzki Reviewed-by: Jim Harris --- lib/blob/blobstore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/blob/blobstore.c b/lib/blob/blobstore.c index 6734c6d9e..f22957a42 100644 --- a/lib/blob/blobstore.c +++ b/lib/blob/blobstore.c @@ -3029,7 +3029,7 @@ blob_get_snapshot_and_clone_entries(struct spdk_blob *blob, } } - assert(clone_entry != NULL); + assert(*clone_entry != NULL); } }