diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2015-11-21 00:56:56 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-11-21 01:17:32 +0100 |
commit | 1491e30ed1a741009d1d38f9285f7a29e6c05c78 (patch) | |
tree | 6a1282ea4dd9ae029ce8cb79092e89fca4dcc2ec /arch/powerpc/kernel/fadump.c | |
parent | configfs: allow dynamic group creation (diff) | |
download | linux-1491e30ed1a741009d1d38f9285f7a29e6c05c78.tar.xz linux-1491e30ed1a741009d1d38f9285f7a29e6c05c78.zip |
ncpfs: don't allow negative timeouts
This code causes a static checker warning because it's a user controlled
variable where we cap the upper bound but not the lower bound. Let's
return an -EINVAL for negative timeouts.
[akpm@linux-foundation.org: remove unneeded `else']
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Jan Kara <jack@suse.com>
Cc: Petr Vandrovec <petr@vandrovec.name>
Cc: David Howells <dhowells@redhat.com>
Cc: Jan Kara <jack@suse.cz>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/powerpc/kernel/fadump.c')
0 files changed, 0 insertions, 0 deletions