Add KASSERT() to be sure there is an active component.

Suggested by:	Coverity Prevent analysis tool
This commit is contained in:
Pawel Jakub Dawidek 2005-05-11 18:13:51 +00:00
parent 0a3384a8f8
commit 862f5624ea
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=146110

View File

@ -1213,6 +1213,7 @@ g_mirror_request_load(struct g_mirror_softc *sc, struct bio *bp)
disk = dp;
}
}
KASSERT(disk != NULL, ("NULL disk for %s.", sc->sc_name));
cbp = g_clone_bio(bp);
if (cbp == NULL) {
if (bp->bio_error == 0)