Message ID | 171322884453.214909.10319162748738486901.stgit@frogsfrogsfrogs (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | [1/1] xfs_repair: check num before bplist[num] | expand |
Looks good:
Reviewed-by: Christoph Hellwig <hch@lst.de>
diff --git a/repair/prefetch.c b/repair/prefetch.c index de36c5fe2cc9..22efd54bf9eb 100644 --- a/repair/prefetch.c +++ b/repair/prefetch.c @@ -494,7 +494,7 @@ pf_batch_read( args->last_bno_read, &fsbno); max_fsbno = fsbno + pf_max_fsbs; } - while (bplist[num] && num < MAX_BUFS && fsbno < max_fsbno) { + while (num < MAX_BUFS && bplist[num] && fsbno < max_fsbno) { /* * Discontiguous buffers need special handling, so stop * gathering new buffers and process the list and this