[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <161832273337.3709196.17485368965759835272.b4-ty@kernel.org>
Date: Tue, 13 Apr 2021 15:05:41 +0100
From: Marc Zyngier <maz@...nel.org>
To: james.morse@....com, eric.auger.pro@...il.com,
kvmarm@...ts.cs.columbia.edu, linux-kernel@...r.kernel.org,
alexandru.elisei@....com, kvm@...r.kernel.org,
Eric Auger <eric.auger@...hat.com>, suzuki.poulose@....com
Cc: gshan@...hat.com, drjones@...hat.com
Subject: Re: [PATCH] KVM: arm/arm64: Fix KVM_VGIC_V3_ADDR_TYPE_REDIST read
On Mon, 12 Apr 2021 17:00:34 +0200, Eric Auger wrote:
> When reading the base address of the a REDIST region
> through KVM_VGIC_V3_ADDR_TYPE_REDIST we expect the
> redistributor region list to be populated with a single
> element.
>
> However list_first_entry() expects the list to be non empty.
> Instead we should use list_first_entry_or_null which effectively
> returns NULL if the list is empty.
Applied to kvm-arm64/vgic-5.13, thanks!
[1/1] KVM: arm/arm64: Fix KVM_VGIC_V3_ADDR_TYPE_REDIST read
commit: 94ac0835391efc1a30feda6fc908913ec012951e
Cheers,
M.
--
Without deviation from the norm, progress is not possible.
Powered by blists - more mailing lists