]> git.baikalelectronics.ru Git - kernel.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)
committerMike Snitzer <snitzer@redhat.com>
Fri, 5 Jun 2020 18:59:59 +0000 (14:59 -0400)
commit473a611d7bbfae255edb30cc32d228c0be291dc0
tree24ba1887da33a9d55562ae10b826ebfec2c747ce
parentad1056d8ab68a41e7a512add2a74447cf368b4e7
dm crypt: avoid truncating the logical block size

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: 0ec6e98779b2 ("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>
drivers/md/dm-crypt.c