]> 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, 17 Sep 2012 01:01:01 +0000 (11:01 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 17 Sep 2012 01:01:01 +0000 (11:01 +1000)
commitbc553e0b41faf83935947803ff44e89a45f00d19
tree565ce6d646e9fd26e86cab3cffb2af492c612838
parent3406fea15f2f4111665fc89a1ce2d8448c1ba838
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