]> git.baikalelectronics.ru Git - kernel.git/commit
dm verity: fix overflow check
authorMikulas Patocka <mpatocka@redhat.com>
Wed, 26 Sep 2012 22:45:48 +0000 (23:45 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Wed, 26 Sep 2012 22:45:48 +0000 (23:45 +0100)
commit4b28a39329be07a8280fdadf94724a2d4dcd550c
treee8e5ceddc169a572269677cab22db02c99ee72f6
parent29a54dbd7ced69ae8ffb3a60ae42415e433f1986
dm verity: fix overflow check

This patch fixes sector_t overflow checking in dm-verity.

Without this patch, the code checks for overflow only if sector_t is
smaller than long long, not if sector_t and long long have the same size.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Cc: stable@vger.kernel.org
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-verity.c