Re: [PATCH 0/4] KVM: s390: replace page allocator calls with kzalloc()
From: Mike Rapoport
Date: Thu Sep 03 2026 - 11:59:56 EST
On Thu, Sep 03, 2026 at 03:08:52PM +0200, Claudio Imbrenda wrote:
> >
> > The only place where __free(kfree) is completely safe is handle_sthyi().
> >
> > In all the other functions using __free(kfree) creates a mix of of goto
> > and cleanup helpers and cleanup docs advise against mixing them:
> >
> > https://docs.kernel.org/core-api/cleanup.html
> >
> > The cleanup paths are quite involved in these functions so using
>
> it looked trivial when I gave it a cursory glance, hence the reason of
> my original request, but...
>
> > __free(kfree) there is really not trivial.
>
> ... yeah, it's actually not trivial at all.
>
>
> maybe refactor the first patch, and leave the rest as it is :)
Yeah, that's what I've been thinking too.
And leave the rest to s390 kvm experts :)
--
Sincerely yours,
Mike.