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>
Tue, 14 Jun 2011 16:09:29 +0000 (09:09 -0700)
commit2fd62fb317e4b37af8b9f254acc1dca8a047488f
tree98aba7fb0653f6c0c3188c490101ad57a2fc8004
parent2d8ee1f03600ce1f21322209b6005fd7796bb25a
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