Skip to content
Commit 16caed31 authored by Dave Jones's avatar Dave Jones Committed by Linus Torvalds
Browse files

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.

[akpm@linux-foundation.org: don't make make_it_fail unsigned]
Signed-off-by: default avatarDave Jones <davej@fedoraproject.org>
Reviewed-by: default avatarAkinobu Mita <akinobu.mita@gmail.com>
Cc: David Rientjes <rientjes@google.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent b06dd879
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment