diff --git a/scst/src/scst_lib.c b/scst/src/scst_lib.c index 6e280766f..d4d05e344 100644 --- a/scst/src/scst_lib.c +++ b/scst/src/scst_lib.c @@ -15818,7 +15818,7 @@ static void __scst_update_latency_stats(struct scst_cmd *cmd, int64_t deltac; #endif - if (stat && stat->last_update) { + if (stat && ktime_to_ns(stat->last_update) != 0) { delta = ktime_to_ns(ktime_sub(now, stat->last_update)); if (delta < 0 || delta > NSEC_PER_SEC) { printk_once(KERN_INFO "%d: ignoring large time delta %lld\n",