]> Git Repo - linux.git/commit
ceph: fix overflow check in build_snap_context()
authorXi Wang <[email protected]>
Thu, 16 Feb 2012 16:56:29 +0000 (11:56 -0500)
committerAlex Elder <[email protected]>
Thu, 22 Mar 2012 15:47:45 +0000 (10:47 -0500)
commit80834312a4da1405a9bc788313c67643de6fcb4c
tree46fdff81b144f9307a4361f943b7f0fa4d7f1341
parent64486697771cbe219fffcb5c8e2ed9ca4fdf086c
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 <[email protected]>
Signed-off-by: Sage Weil <[email protected]>
fs/ceph/snap.c
This page took 0.062623 seconds and 4 git commands to generate.