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)
committerMike Lockwood <lockwood@android.com>
Sat, 17 Apr 2010 16:01:35 +0000 (12:01 -0400)
commita7f5cb901df253cb3aed7a369298a95703cc5995
treecfa71212d1faf4772f7d2715821b864328b4e060
parent0fc7f96b5be344f7a5499e29b30f245fb857f4a2
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