diff options
author | Tian Tao <tiantao6@hisilicon.com> | 2021-04-14 09:43:44 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-05-11 14:04:18 +0200 |
commit | 569bae00ebbecdeeb269c24f1364ed1cbba078a4 (patch) | |
tree | 9f635ffa2b426bb824d5a4b715e3a2f094e71801 /drivers/md/dm-integrity.c | |
parent | ff8fd1e3b58ab60f38855b99b6fd4f40e5f687d3 (diff) | |
download | linux-stable-569bae00ebbecdeeb269c24f1364ed1cbba078a4.tar.gz linux-stable-569bae00ebbecdeeb269c24f1364ed1cbba078a4.tar.bz2 linux-stable-569bae00ebbecdeeb269c24f1364ed1cbba078a4.zip |
dm integrity: fix missing goto in bitmap_flush_interval error handling
commit 17e9e134a8efabbbf689a0904eee92bb5a868172 upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/md/dm-integrity.c')
-rw-r--r-- | drivers/md/dm-integrity.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/md/dm-integrity.c b/drivers/md/dm-integrity.c index c967c2cdba87..9f4d657dd36c 100644 --- a/drivers/md/dm-integrity.c +++ b/drivers/md/dm-integrity.c @@ -3762,6 +3762,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:"))) { |