Message ID | 160751611918.1238376.7060458630378643472.stgit@warthog.procyon.org.uk (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | keys: Miscellaneous fixes | expand |
On Wed, Dec 09, 2020 at 12:15:19 +0000, David Howells wrote: > From: Tom Rix <trix@redhat.com> > > Reviewing use of memset in keyctrl_pkey.c Typo: `keyctl_pkey.c` --Ben
Ben Boeckel <me@benboeckel.net> wrote: > > Reviewing use of memset in keyctrl_pkey.c > > Typo: `keyctl_pkey.c` Fixed, thanks. David
diff --git a/security/keys/keyctl_pkey.c b/security/keys/keyctl_pkey.c index 931d8dfb4a7f..5de0d599a274 100644 --- a/security/keys/keyctl_pkey.c +++ b/security/keys/keyctl_pkey.c @@ -166,8 +166,6 @@ long keyctl_pkey_query(key_serial_t id, struct kernel_pkey_query res; long ret; - memset(¶ms, 0, sizeof(params)); - ret = keyctl_pkey_params_get(id, _info, ¶ms); if (ret < 0) goto error;