Re: [RFC PATCH 2/6] testing/pkeys: Don't use uninitialized variable

2022-06-14 Thread Sohil Mehta
On 6/10/2022 4:35 PM, ira.we...@intel.com wrote: diff --git a/tools/testing/selftests/vm/protection_keys.c b/tools/testing/selftests/vm/protection_keys.c index d0183c381859..43e47de19c0d 100644 --- a/tools/testing/selftests/vm/protection_keys.c +++ b/tools/testing/selftests/vm/protection_keys.c

Re: [RFC PATCH 2/6] testing/pkeys: Don't use uninitialized variable

2022-06-13 Thread Ira Weiny
On Mon, Jun 13, 2022 at 03:48:56PM -0700, Mehta, Sohil wrote: > On 6/10/2022 4:35 PM, ira.we...@intel.com wrote: > > diff --git a/tools/testing/selftests/vm/protection_keys.c > > b/tools/testing/selftests/vm/protection_keys.c > > index d0183c381859..43e47de19c0d 100644 > > --- a/tools/testing/self

[RFC PATCH 2/6] testing/pkeys: Don't use uninitialized variable

2022-06-10 Thread ira . weiny
From: Ira Weiny err was being used in test_pkey_alloc_exhaust() prior to being assigned. errno is useful to know after a failed alloc_pkey() call. Change err to errno in the debug print. Cc: Dave Hansen Cc: Aneesh Kumar K.V Signed-off-by: Ira Weiny --- tools/testing/selftests/vm/protection_