sunrpc: Fix RFC6803 encryption test
authorDavid Howells <dhowells@redhat.com>
Thu, 13 Apr 2023 13:51:56 +0000 (14:51 +0100)
committerChuck Lever <chuck.lever@oracle.com>
Thu, 13 Apr 2023 13:59:46 +0000 (09:59 -0400)
commitc8bc34660628769f71e8b230144a2a4d86ab0f91
tree5bf4d1f68a92a54616ff6f52e1b29cf9b284c73d
parent7de82c2f36fb26aa78440bbf0efcf360b691d98b
sunrpc: Fix RFC6803 encryption test

The usage_data[] array in rfc6803_encrypt_case() is uninitialised, so clear
it as it may cause the tests to fail otherwise.

Fixes: b958cff6b27b ("SUNRPC: Add encryption KUnit tests for the RFC 6803 encryption types")
Link: https://lore.kernel.org/r/380323.1681314997@warthog.procyon.org.uk/
Signed-off-by: David Howells <dhowells@redhat.com>
cc: Chuck Lever <chuck.lever@oracle.com>
cc: Scott Mayhew <smayhew@redhat.com>
cc: Herbert Xu <herbert@gondor.apana.org.au>
cc: linux-nfs@vger.kernel.org
cc: linux-crypto@vger.kernel.org
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
net/sunrpc/auth_gss/gss_krb5_test.c