Re: [PATCH] KVM: arm64: its: Fix missing dynamic allocation check in scan_its_table

2017-10-13 Thread Marc Zyngier
On 13/10/17 12:57, Christoffer Dall wrote: > On Fri, Oct 13, 2017 at 12:00:50PM +0100, Marc Zyngier wrote: >> On 13/10/17 11:52, Christoffer Dall wrote: >>> We currently allocate an entry dynamically, but we never check if the >>> allocation actually succeeded. We actually don't need a dynamic

Re: [PATCH] KVM: arm64: its: Fix missing dynamic allocation check in scan_its_table

2017-10-13 Thread Christoffer Dall
On Fri, Oct 13, 2017 at 12:00:50PM +0100, Marc Zyngier wrote: > On 13/10/17 11:52, Christoffer Dall wrote: > > We currently allocate an entry dynamically, but we never check if the > > allocation actually succeeded. We actually don't need a dynamic > > allocation, because we know the maximum size

[PATCH] KVM: arm64: its: Fix missing dynamic allocation check in scan_its_table

2017-10-13 Thread Christoffer Dall
We currently allocate an entry dynamically, but we never check if the allocation actually succeeded. We actually don't need a dynamic allocation, because we know the maximum size of an ITS table entry, so we can simply use an allocation on the stack. Cc: Signed-off-by: