[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [qemu-s390x] [PATCH v2] s390: avoid potential null dereference ins39
From: |
Peter Maydell |
Subject: |
Re: [qemu-s390x] [PATCH v2] s390: avoid potential null dereference ins390_pcihost_unplug() |
Date: |
Mon, 7 Jan 2019 15:54:21 +0000 |
On Mon, 7 Jan 2019 at 15:48, Cornelia Huck <address@hidden> wrote:
>
> On Fri, 4 Jan 2019 22:33:51 +0800
> Li Qiang <address@hidden> wrote:
>
> > What do you think of ‘g_assert_not_reached();’. For example:
> >
> > else {
> > g_assert_not_reached();
> > }
>
> Sounds good. But please return anyway in the unplug case, so that the
> code is fine if asserts have been configured out.
Hopefully that won't cause the compiler to complain about
unreachable code :-)
thanks
-- PMM
- [qemu-s390x] [PATCH v2] s390: avoid potential null dereference in s390_pcihost_unplug(), Li Qiang, 2019/01/03
- Re: [qemu-s390x] [PATCH v2] s390: avoid potential null dereference in s390_pcihost_unplug(), Cornelia Huck, 2019/01/04
- [qemu-s390x] 答复: [PATCH v2] s390: avoid potential null dereference ins390_pcihost_unplug(), Li Qiang, 2019/01/04
- Re: [qemu-s390x] 答复: [PATCH v2] s390: avoid potential null dereference ins390_pcihost_unplug(), David Hildenbrand, 2019/01/07
- Re: [qemu-s390x] [PATCH v2] s390: avoid potential null dereference ins390_pcihost_unplug(), Cornelia Huck, 2019/01/07
- Re: [qemu-s390x] [PATCH v2] s390: avoid potential null dereference ins390_pcihost_unplug(),
Peter Maydell <=
- Re: [qemu-s390x] [PATCH v2] s390: avoid potential null dereference ins390_pcihost_unplug(), Cornelia Huck, 2019/01/07
- Re: [qemu-s390x] [PATCH v2] s390: avoid potential null dereference ins390_pcihost_unplug(), Peter Maydell, 2019/01/07
- Re: [qemu-s390x] [PATCH v2] s390: avoid potential null dereference ins390_pcihost_unplug(), Cornelia Huck, 2019/01/07
- Re: [qemu-s390x] [PATCH v2] s390: avoid potential null dereference ins390_pcihost_unplug(), 李强, 2019/01/08
Re: [qemu-s390x] [PATCH v2] s390: avoid potential null dereference in s390_pcihost_unplug(), Halil Pasic, 2019/01/04