Skip to content

Commit ef9110f

Browse files
committed
Add defensive assertion to vdev_queue_aggregate()
a6ccb36 had been intended to include this to silence Coverity reports, but this one was missed by mistake. Signed-off-by: Richard Yao <[email protected]>
1 parent 4770690 commit ef9110f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

module/zfs/vdev_queue.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -725,6 +725,7 @@ vdev_queue_aggregate(vdev_queue_t *vq, zio_t *zio)
725725
* after our span is mandatory.
726726
*/
727727
dio = AVL_NEXT(t, last);
728+
ASSERT3P(dio, !=, NULL);
728729
dio->io_flags &= ~ZIO_FLAG_OPTIONAL;
729730
} else {
730731
/* do not include the optional i/o */

0 commit comments

Comments
 (0)