Skip to content

Commit dbf2d3a

Browse files
ryaoandrewc12
authored andcommitted
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. Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Richard Yao <[email protected]> Closes openzfs#14043
1 parent 420d196 commit dbf2d3a

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)