diff options
author | 2010-06-11 17:30:05 +0100 | |
---|---|---|
committer | 2010-06-27 07:02:34 -0700 | |
commit | 4303ef19c6e6d16ea845c04b02b9cf086bcb8ed7 (patch) | |
tree | 83e649d3b9d3583c7576920a0feb08e38a19d1b5 /lib/nlattr.c | |
parent | Linux 2.6.35-rc3 (diff) | |
download | linux-4303ef19c6e6d16ea845c04b02b9cf086bcb8ed7.tar.gz linux-4303ef19c6e6d16ea845c04b02b9cf086bcb8ed7.tar.bz2 linux-4303ef19c6e6d16ea845c04b02b9cf086bcb8ed7.zip |
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 <error27@gmail.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib/nlattr.c')
0 files changed, 0 insertions, 0 deletions