From ce4ded58d4b5869153cf5fde839161dff974cf94 Mon Sep 17 00:00:00 2001 From: Xi Wang Date: Thu, 16 Feb 2012 11:56:29 -0500 Subject: [PATCH] ceph: fix overflow check in build_snap_context() commit 80834312a4da1405a9bc788313c67643de6fcb4c upstream. 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 Signed-off-by: Sage Weil Signed-off-by: Ben Hutchings --- Reading git-format-patch failed