Do not use bio structure after g_io_deliver(), it may not longer by valid.
Found and fixed by: Vsevolod Lobko <seva@ip.net.ua> MFC after: 3 days
This commit is contained in:
parent
c5dcb84008
commit
290c616103
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=155906
@ -1204,9 +1204,9 @@ g_raid3_gather(struct bio *pbp)
|
||||
G_RAID3_LOGREQ(0, pbp, "Request failed.");
|
||||
}
|
||||
pbp->bio_pflags &= ~G_RAID3_BIO_PFLAG_MASK;
|
||||
g_io_deliver(pbp, pbp->bio_error);
|
||||
while ((cbp = G_RAID3_HEAD_BIO(pbp)) != NULL)
|
||||
g_raid3_destroy_bio(sc, cbp);
|
||||
g_io_deliver(pbp, pbp->bio_error);
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user