]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commit1d55f6bcc0331d744cd5b56c4ee79e3809438161
treee8e5ceddc169a572269677cab22db02c99ee72f6
parent0424caa14508f19ca8093d36c15250e0331a3a0a
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