Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fault-injection: set bounds on what /proc/self/make-it-fail accepts.
/proc/self/make-it-fail is a boolean, but accepts any number, including negative ones. Change variable to unsigned, and cap upper bound at 1. [[email protected]: don't make make_it_fail unsigned] Signed-off-by: Dave Jones <[email protected]> Reviewed-by: Akinobu Mita <[email protected]> Cc: David Rientjes <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
- Loading branch information