summaryrefslogtreecommitdiff
path: root/drivers/md
diff options
context:
space:
mode:
authorTian Tao <tiantao6@hisilicon.com>2021-04-14 09:43:44 +0800
committerMike Snitzer <snitzer@redhat.com>2021-04-19 13:17:10 -0400
commit17e9e134a8efabbbf689a0904eee92bb5a868172 (patch)
tree1ce5738b3ce79a4ad7e999527b82dc52f71350b9 /drivers/md
parent7a35693adcd38664b852ad10e3742782b3e87987 (diff)
dm integrity: fix missing goto in bitmap_flush_interval error handling
Fixes: 468dfca38b1a ("dm integrity: add a bitmap mode") Cc: stable@vger.kernel.org Signed-off-by: Tian Tao <tiantao6@hisilicon.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md')
-rw-r--r--drivers/md/dm-integrity.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/md/dm-integrity.c b/drivers/md/dm-integrity.c
index fed8a7ccd7f9..6977422454a4 100644
--- a/drivers/md/dm-integrity.c
+++ b/drivers/md/dm-integrity.c
@@ -4049,6 +4049,7 @@ static int dm_integrity_ctr(struct dm_target *ti, unsigned argc, char **argv)
if (val >= (uint64_t)UINT_MAX * 1000 / HZ) {
r = -EINVAL;
ti->error = "Invalid bitmap_flush_interval argument";
+ goto bad;
}
ic->bitmap_flush_interval = msecs_to_jiffies(val);
} else if (!strncmp(opt_string, "internal_hash:", strlen("internal_hash:"))) {