Re: [PATCH 08/12] selftests/mm: fix a "possibly uninitialized" warning in pkey-x86.h

From: David Hildenbrand
Date: Fri Jun 02 2023 - 06:17:10 EST


On 02.06.23 03:33, John Hubbard wrote:
This fixes a real bug, too, because xstate_size() was assuming that
the stack variable xstate_size was initialized to zero. That's not
guaranteed nor even especially likely.

Signed-off-by: John Hubbard <jhubbard@xxxxxxxxxx>

Reviewed-by: David Hildenbrand <david@xxxxxxxxxx>

--
Thanks,

David / dhildenb