https://github.com/torvalds/linux
Revision 4303ef19c6e6d16ea845c04b02b9cf086bcb8ed7 authored by Dan Carpenter on 11 June 2010, 16:30:05 UTC, committed by Linus Torvalds on 27 June 2010, 14:02:34 UTC
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>
1 parent 7e27d6e
History
Tip revision: 4303ef19c6e6d16ea845c04b02b9cf086bcb8ed7 authored by Dan Carpenter on 11 June 2010, 16:30:05 UTC
KEYS: Propagate error code instead of returning -EINVAL
Tip revision: 4303ef1
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.gitignore -rw-r--r-- 936 bytes
.mailmap -rw-r--r-- 3.9 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 91.8 KB
Kbuild -rw-r--r-- 2.4 KB
MAINTAINERS -rw-r--r-- 170.0 KB
Makefile -rw-r--r-- 52.6 KB
README -rw-r--r-- 17.0 KB
REPORTING-BUGS -rw-r--r-- 3.3 KB

README

back to top