[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2] block: fix QEMU crash with scsi-hd and drive
From: |
Greg Kurz |
Subject: |
Re: [Qemu-devel] [PATCH v2] block: fix QEMU crash with scsi-hd and drive_del |
Date: |
Thu, 24 May 2018 19:15:31 +0200 |
On Thu, 24 May 2018 17:52:56 +0100
Stefan Hajnoczi <address@hidden> wrote:
> On Thu, May 24, 2018 at 11:09:47AM +0200, Greg Kurz wrote:
> > diff --git a/block.c b/block.c
> > index 676e57f5623a..fc9379439883 100644
> > --- a/block.c
> > +++ b/block.c
> > @@ -2127,12 +2127,16 @@ BdrvChild *bdrv_attach_child(BlockDriverState
> > *parent_bs,
> >
> > static void bdrv_detach_child(BdrvChild *child)
> > {
> > + BlockDriverState *child_bs = child->bs;
> > +
> > if (child->next.le_prev) {
> > QLIST_REMOVE(child, next);
> > child->next.le_prev = NULL;
> > }
>
> This child->next modification makes me nervous. Please start the
> drained region before modifying the graph.
Ok, I'll send a v3, and Cc address@hidden instead of
address@hidden this time :P
pgpM4nPv_Vivs.pgp
Description: OpenPGP digital signature