]> 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, 24 Sep 2012 00:22:53 +0000 (10:22 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 24 Sep 2012 00:22:53 +0000 (10:22 +1000)
commit2b7bd2f22455b69789b9c202f161f2566ba5bbe8
tree01e6870a70c4d4b867d9e305d4301fee4b63c9c2
parent1b6576ccd0d9ac0f5a84e0864a43362cc0f6b39f
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