From: Dan Carpenter Date: Fri, 11 Jun 2010 16:30:05 +0000 (+0100) Subject: KEYS: Propagate error code instead of returning -EINVAL X-Git-Tag: v2.6.35-rc4~73 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4303ef19c6e6d16ea845c04b02b9cf086bcb8ed7;p=pandora-kernel.git KEYS: Propagate error code instead of returning -EINVAL This is from a Smatch check I'm writing. strncpy_from_user() returns -EFAULT on error so the first change just silences a warning but doesn't change how the code works. The other change is a bug fix because install_thread_keyring_to_cred() can return a variety of errors such as -EINVAL, -EEXIST, -ENOMEM or -EKEYREVOKED. Signed-off-by: Dan Carpenter Signed-off-by: David Howells Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed