]> git.karo-electronics.de Git - karo-tx-linux.git/commit
This patch fixes sector_t overflow checking in dm-verity.
authorMikulas Patocka <mpatocka@redhat.com>
Thu, 27 Sep 2012 23:28:19 +0000 (09:28 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 27 Sep 2012 23:28:19 +0000 (09:28 +1000)
commit254fe92e7b3344664c4cae65eacddb3d81e9d33e
tree74abc213ce33f3090b6b543be7ee97282937732d
parentaa44d77ff3caf3a60f11b3afb4a660d7b30966c9
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