From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mimi Zohar Date: Mon, 16 Jan 2017 13:58:50 +0000 Subject: Re: [patch] KEYS: Fix an error code in request_master_key() Message-Id: <1484575130.5538.2.camel@linux.vnet.ibm.com> List-Id: References: <1481907033.17553.78.camel@linux.vnet.ibm.com> <20161216090827.GA7285@elgon.mountain> <11899.1484226513@warthog.procyon.org.uk> In-Reply-To: <11899.1484226513@warthog.procyon.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: David Howells Cc: Dan Carpenter , David Safford , James Morris , "Serge E. Hallyn" , linux-security-module@vger.kernel.org, keyrings@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org On Thu, 2017-01-12 at 13:08 +0000, David Howells wrote: > Mimi Zohar wrote: > > > On Fri, 2016-12-16 at 12:08 +0300, Dan Carpenter wrote: > > > This function has two callers and neither are able to handle a NULL > > > return. Really, -EINVAL is the correct thing return here anyway. This > > > fixes some static checker warnings like: > > > > > > security/keys/encrypted-keys/encrypted.c:709 encrypted_key_decrypt() > > > error: uninitialized symbol 'master_key'. > > > > > > Fixes: 7e70cb497850 ("keys: add new key-type encrypted") > > > Signed-off-by: Dan Carpenter > > > > Thanks! > > Can I put that down as an Acked-by or Reviewed-by? Feel free to add by "Acked-by" on both this patch and Dan's other patch "KEYS: Use memzero_explicit() for secret data". Mimi