]> 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)
commit5645d47c72025afaf460fdf0ec3273e8af71d153
treee8e5ceddc169a572269677cab22db02c99ee72f6
parentf59c9442d38f54aab3815de481bb9bc66b68faa7
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