Staging: android: timed_gpio: Properly discard invalid timeout values.
authorMike Lockwood <lockwood@android.com>
Sat, 17 Apr 2010 16:01:35 +0000 (12:01 -0400)
committermgross <mark.gross@intel.com>
Wed, 9 Nov 2011 20:05:15 +0000 (12:05 -0800)
commita81a80853ee8538f1a661cb71416568ea4cf72b9
treea0df9af4e5bf774996b3ca411e4359b6cab1fbfd
parent066408c5e64b14cf3b77eefe7c2f68aca65e3fd0
Staging: android: timed_gpio: Properly discard invalid timeout values.

The timed output device never previously checked the return value of sscanf,
resulting in an uninitialized int being passed to enable() if input value
was invalid.

Signed-off-by: Mike Lockwood <lockwood@android.com>
drivers/staging/android/timed_output.c