mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-17 15:27:36 +00:00
After rejecting the bio request early, return instead of panicing.
Found by: Coverity (ID#450)
This commit is contained in:
parent
b3b21113a5
commit
b3fd9b46bb
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=143791
@ -240,8 +240,10 @@ g_disk_start(struct bio *bp)
|
||||
off_t off;
|
||||
|
||||
dp = bp->bio_to->geom->softc;
|
||||
if (dp == NULL || dp->d_destroyed)
|
||||
if (dp == NULL || dp->d_destroyed) {
|
||||
g_io_deliver(bp, ENXIO);
|
||||
return;
|
||||
}
|
||||
error = EJUSTRETURN;
|
||||
switch(bp->bio_cmd) {
|
||||
case BIO_DELETE:
|
||||
|
Loading…
Reference in New Issue
Block a user