diff --git a/sys/dev/vinum/vinumrevive.c b/sys/dev/vinum/vinumrevive.c index f52869e7d45a..07b73906a69d 100644 --- a/sys/dev/vinum/vinumrevive.c +++ b/sys/dev/vinum/vinumrevive.c @@ -317,7 +317,7 @@ parityops(struct vinum_ioctl_msg *data) } if (reply->error == EAGAIN) { /* still OK, */ plex->checkblock = pstripe + (pbp->b_bcount >> DEV_BSHIFT); /* moved this much further down */ - if (pstripe >= SD[plex->sdnos[0]].sectors) { /* finished */ + if (plex->checkblock >= SD[plex->sdnos[0]].sectors) { /* finished */ plex->checkblock = 0; reply->error = 0; }