staging: cs5535_gpio: check put_user() return code
authorVasiliy Kulikov <segoon@openwall.com>
Mon, 17 Jan 2011 10:08:49 +0000 (13:08 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 21 Jan 2011 20:35:14 +0000 (12:35 -0800)
commit01ebd764dab26b3064b0c73ddcf726dd4b41485a
tree8a82814492fb9e372187f16234b62e8839399496
parent2f644ccfc5a3195290d12b8eedf18a37bba27d98
staging: cs5535_gpio: check put_user() return code

put_user() may fail, if so return -EFAULT.

Signed-off-by: Vasiliy Kulikov <segoon@openwall.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/cs5535_gpio/cs5535_gpio.c