linux/fs/ncpfs
Dan Carpenter 1491e30ed1 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>
2015-11-20 16:17:32 -08:00
..
dir.c fs/ncpfs/dir.c: remove unnecessary new_valid_dev() check 2015-11-09 15:11:24 -08:00
file.c switch generic_write_checks() to iocb and iter 2015-04-11 22:30:21 -04:00
getopt.c
getopt.h
inode.c VFS: normal filesystems (and lustre): d_inode() annotations 2015-04-15 15:06:57 -04:00
ioctl.c ncpfs: don't allow negative timeouts 2015-11-20 16:17:32 -08:00
Kconfig
Makefile
mmap.c
ncp_fs_i.h
ncp_fs_sb.h
ncp_fs.h
ncplib_kernel.c VFS: normal filesystems (and lustre): d_inode() annotations 2015-04-15 15:06:57 -04:00
ncplib_kernel.h
ncpsign_kernel.c
ncpsign_kernel.h
sock.c
symlink.c VFS: normal filesystems (and lustre): d_inode() annotations 2015-04-15 15:06:57 -04:00