From: Linus Torvalds Date: Sat, 18 Aug 2012 16:02:27 +0000 (-0700) Subject: Make fixup_divep robust against insane dive times X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=1a05f34ae89d35f6ece12dba7b6ab5f60df98705;hp=1a05f34ae89d35f6ece12dba7b6ab5f60df98705;p=ext%2Fsubsurface.git Make fixup_divep robust against insane dive times This fixes the case of the dive duration being zero, or being shorter than the assumed ascent/descent time. Reported-by: Lutz Vieweg Signed-off-by: Linus Torvalds ---