]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
dm integrity: fix a crash if "recalculate" used without "internal_hash"
authorMikulas Patocka <mpatocka@redhat.com>
Wed, 20 Jan 2021 11:02:31 +0000 (06:02 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Jan 2021 10:05:36 +0000 (11:05 +0100)
commitcf750e09d17f25cf763644168417fcad73e3ce0c
tree5337317f33714c61a0c189bdcfe925fae0053308
parent97c5846e04532a0651da7016b4d35862993ea56d
dm integrity: fix a crash if "recalculate" used without "internal_hash"

commit 2d06dfecb132a1cc2e374a44eae83b5c4356b8b4 upstream.

Recalculate can only be specified with internal_hash.

Cc: stable@vger.kernel.org # v4.19+
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/md/dm-integrity.c