summaryrefslogtreecommitdiffstats
path: root/kernel/range.c
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2010-11-11 23:05:13 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2010-11-12 16:55:31 +0100
commitaec04288904a7308f2900926902040e7a69ae2be (patch)
treedc897e5ee40107d92216a930494138a12706eb95 /kernel/range.c
parentmemcg: null dereference on allocation failure (diff)
downloadlinux-aec04288904a7308f2900926902040e7a69ae2be.tar.xz
linux-aec04288904a7308f2900926902040e7a69ae2be.zip
drivers/misc/bh1770glc.c: error handling in bh1770_power_state_store()
There was a signedness bug so "ret" was never less than zero and that breaks the error handling. Also in the original code it would overwrite ret and the result is still negative but it's bogus number instead of the correct error code. Signed-off-by: Dan Carpenter <error27@gmail.com> Cc: Samu Onkalo <samu.p.onkalo@nokia.com> Cc: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/range.c')
0 files changed, 0 insertions, 0 deletions