blktrace.c: Don't sleep indefinitely if there is a wrong timestamp
authorLukas Straub <lukasstraub2@web.de>
Wed, 19 Jan 2022 21:14:33 +0000 (21:14 +0000)
committerJens Axboe <axboe@kernel.dk>
Thu, 20 Jan 2022 18:40:42 +0000 (11:40 -0700)
commitf36bd1341690e0c63718c32465e173874bf56727
tree9fbb79053bc63ac71cf22b17cf3c5132e7e1b2c3
parentd0b12843fd441460bd9a0172169b028a74f76b10
blktrace.c: Don't sleep indefinitely if there is a wrong timestamp

Each of my traces have a single entry with a wrong timestamp
that causes a underflow followed by a infinite sleep.

Fix this by checking for underflow.

Signed-off-by: Lukas Straub <lukasstraub2@web.de>
Link: https://lore.kernel.org/r/a19b7ea899093c4c0ed98d2d9a310f2f0f01fddd.1642626314.git.lukasstraub2@web.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
blktrace.c