]> 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>
Mon, 10 Sep 2012 23:41:20 +0000 (09:41 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 10 Sep 2012 23:41:20 +0000 (09:41 +1000)
commita62b0b89445ee370d5a016f08d29e38812abd0f8
tree84c69f966bc34ee9e67e7f00b063379b1172bbe8
parent4cbe5a555fa58a79b6ecbb6c531b8bab0650778d
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>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-verity.c