diff options
author | Xi Wang <xi.wang@gmail.com> | 2012-02-16 20:56:29 +0400 |
---|---|---|
committer | Alex Elder <elder@dreamhost.com> | 2012-03-22 19:47:45 +0400 |
commit | 80834312a4da1405a9bc788313c67643de6fcb4c (patch) | |
tree | 46fdff81b144f9307a4361f943b7f0fa4d7f1341 /include/linux/ceph | |
parent | 64486697771cbe219fffcb5c8e2ed9ca4fdf086c (diff) | |
download | linux-80834312a4da1405a9bc788313c67643de6fcb4c.tar.xz |
ceph: fix overflow check in build_snap_context()
The overflow check for a + n * b should be (n > (ULONG_MAX - a) / b),
rather than (n > ULONG_MAX / b - a).
Signed-off-by: Xi Wang <xi.wang@gmail.com>
Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'include/linux/ceph')
0 files changed, 0 insertions, 0 deletions