Staging: asus_oled: fix oops in 2.6.32.2
authorEugeni Dodonov <eugeni@mandriva.com>
Wed, 23 Dec 2009 12:27:22 +0000 (10:27 -0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 25 Jan 2010 18:49:14 +0000 (10:49 -0800)
commit50e49751f94abb0b79563b69bd31392b8b477a2a
treea8f5c791f43baad57605fdd2ba11ff442e05b4da
parentccb90b8b6aae814987b23d60d13b4d32dc03a389
Staging: asus_oled: fix oops in 2.6.32.2

commit 20633bf0141c5e93e3396770d5eb7d200ee4068a upstream.

After updating to 2.6.32 kernel, I started experiencing Oopses caused by
the asus_oled module. After quick investigation, I wrapped this simple
patch which fixes an Oops in by asus_oled module on 2.6.32.2 kernel,
caused by incorrect usage of strict_strtoul function call within
set_enabled and set_disabled functions. This can be triggered by simple
running the userspace client for asus_old (e.g., 'asusoled -e' or
'asusoled -d').

Signed-off-by: Eugeni Dodonov <eugeni@mandriva.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/asus_oled/asus_oled.c