Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Tian Tao and committed by
Mike Snitzer
17e9e134 7a35693a

+1
+1
drivers/md/dm-integrity.c
··· 4049 4049 if (val >= (uint64_t)UINT_MAX * 1000 / HZ) { 4050 4050 r = -EINVAL; 4051 4051 ti->error = "Invalid bitmap_flush_interval argument"; 4052 + goto bad; 4052 4053 } 4053 4054 ic->bitmap_flush_interval = msecs_to_jiffies(val); 4054 4055 } else if (!strncmp(opt_string, "internal_hash:", strlen("internal_hash:"))) {