aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/fpga/fpga-mgr.c
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2015-11-20 23:56:56 +0000
committerLinus Torvalds <[email protected]>2015-11-21 00:17:32 +0000
commit1491e30ed1a741009d1d38f9285f7a29e6c05c78 (patch)
tree6a1282ea4dd9ae029ce8cb79092e89fca4dcc2ec /drivers/fpga/fpga-mgr.c
parentconfigfs: allow dynamic group creation (diff)
downloadkernel-1491e30ed1a741009d1d38f9285f7a29e6c05c78.tar.gz
kernel-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. [[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]>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions