should reset the mem to 0, if not get the indicated next block.
which should fix the audit log oops.
loghandle->lgh_id.lgl_ogen, *curr_offset);
RETURN(-EINVAL);
}
- if (le32_to_cpu(tail->lrt_index) < next_idx)
+ if (le32_to_cpu(tail->lrt_index) < next_idx) {
+ memset(buf, 0, len);
continue;
+ }
/* sanity check that the start of the new buffer is no farther
* than the record that we wanted. This shouldn't happen. */