]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 30 Nov 2011 11:51:36 +0000 (20:51 +0900)
commit40e84faff4c380af0082eb05c68f62f927c47665
tree84f492cb22f6fde989989c8739a748dd387d57d0
parentf72a412c436555ed3ff2865a999a7e929df9744f
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/android/timed_output.c