diff options
Diffstat (limited to 'drivers/block')
-rw-r--r-- | drivers/block/drbd/drbd_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/drbd/drbd_main.c b/drivers/block/drbd/drbd_main.c index af30ca97493c..ecc1612df676 100644 --- a/drivers/block/drbd/drbd_main.c +++ b/drivers/block/drbd/drbd_main.c | |||
@@ -3623,7 +3623,7 @@ _drbd_fault_random(struct fault_random_state *rsp) | |||
3623 | { | 3623 | { |
3624 | long refresh; | 3624 | long refresh; |
3625 | 3625 | ||
3626 | if (--rsp->count < 0) { | 3626 | if (!rsp->count--) { |
3627 | get_random_bytes(&refresh, sizeof(refresh)); | 3627 | get_random_bytes(&refresh, sizeof(refresh)); |
3628 | rsp->state += refresh; | 3628 | rsp->state += refresh; |
3629 | rsp->count = FAULT_RANDOM_REFRESH; | 3629 | rsp->count = FAULT_RANDOM_REFRESH; |