diff options
author | Mikulas Patocka <mpatocka@redhat.com> | 2020-02-17 08:11:35 -0500 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2020-02-25 12:06:08 -0500 |
commit | 7fc2e47f40dd77ab1fcbda6db89614a0173d89c7 (patch) | |
tree | 334a0c6ca087d29ff7b1b4f43306c7936d531d55 /drivers/md/dm-cache-target.c | |
parent | 53770f0ec5fd417429775ba006bc4abe14002335 (diff) | |
download | linux-stable-7fc2e47f40dd77ab1fcbda6db89614a0173d89c7.tar.gz linux-stable-7fc2e47f40dd77ab1fcbda6db89614a0173d89c7.tar.bz2 linux-stable-7fc2e47f40dd77ab1fcbda6db89614a0173d89c7.zip |
dm integrity: fix invalid table returned due to argument count mismatch
If the flag SB_FLAG_RECALCULATE is present in the superblock, but it was
not specified on the command line (i.e. ic->recalculate_flag is false),
dm-integrity would return invalid table line - the reported number of
arguments would not match the real number.
Fixes: 468dfca38b1a ("dm integrity: add a bitmap mode")
Cc: stable@vger.kernel.org # v5.2+
Reported-by: Ondrej Kozina <okozina@redhat.com>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md/dm-cache-target.c')
0 files changed, 0 insertions, 0 deletions