]> www.infradead.org Git - users/dwmw2/linux.git/commit
dm crypt: avoid truncating the logical block size
authorEric Biggers <ebiggers@google.com>
Thu, 4 Jun 2020 19:01:26 +0000 (12:01 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 22 Jun 2020 07:33:04 +0000 (09:33 +0200)
commit1eb02ebea345fdb8db626536327c228d4e03f32e
treeb8a1d44afa33f10732c975f9a3e0eaa2026cc973
parent1c1a01a7da95491e4fca13f32c2ae993c9ab3762
dm crypt: avoid truncating the logical block size

commit 64611a15ca9da91ff532982429c44686f4593b5f upstream.

queue_limits::logical_block_size got changed from unsigned short to
unsigned int, but it was forgotten to update crypt_io_hints() to use the
new type.  Fix it.

Fixes: ad6bf88a6c19 ("block: fix an integer overflow in logical block size")
Cc: stable@vger.kernel.org
Signed-off-by: Eric Biggers <ebiggers@google.com>
Reviewed-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-crypt.c