| commit | c0b50b292c41e0a1c6a1ef6df665fe7fb8eac2e1 | [log] [tgz] |
|---|---|---|
| author | Mikulas Patocka <mpatocka@redhat.com> | Wed Sep 26 23:45:48 2012 +0100 |
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Sun Oct 07 08:32:22 2012 -0700 |
| tree | 00bdc183dd5bd765f27d24bb99aee7ec024c48b1 | |
| parent | 7d77f4776e3fc8770f90244f1f5d1c9181b834c7 [diff] |
dm verity: fix overflow check commit 1d55f6bcc0331d744cd5b56c4ee79e3809438161 upstream. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>