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)
committerColin Cross <ccross@android.com>
Thu, 30 Sep 2010 00:49:33 +0000 (17:49 -0700)
commit8ae1b091c3174faf06053f34409f28bbc3e23c59
tree570d283daa603f1274d76790c3e31741e5233438
parente2dd99e8e2dae1cdfcc0aaa59eb66ced015cfea0
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