Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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. [[email protected]: remove unneeded `else'] Signed-off-by: Dan Carpenter <[email protected]> Reviewed-by: Jan Kara <[email protected]> Cc: Petr Vandrovec <[email protected]> Cc: David Howells <[email protected]> Cc: Jan Kara <[email protected]> Cc: Al Viro <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
- Loading branch information