[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <a1bbe002-da95-1a05-5055-7212e7606652@redhat.com>
Date: Thu, 23 Mar 2017 18:15:05 +0100
From: David Hildenbrand <david@...hat.com>
To: Cornelia Huck <cornelia.huck@...ibm.com>
Cc: kvm@...r.kernel.org, Paolo Bonzini <pbonzini@...hat.com>,
rkrcmar@...hat.com, Dmitry Vyukov <dvyukov@...gle.com>,
Marcelo Tosatti <mtosatti@...hat.com>, stable@...r.kernel.org,
LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH v1] KVM: kvm_io_bus_unregister_dev() should never fail
>
> Either that, or an early exit for bus == NULL in kvm_io_bus_destroy().
> (I think the second option is more straightforward.)
I prefer to have the checks where kvm->buses[x] is actually accessed. So
the chance of missing yet another check is easier to verify.
Will send out v2 in a couple of minutes. Thanks!
--
Thanks,
David
Powered by blists - more mailing lists