diff options
author | 2014-04-09 19:45:46 +0900 | |
---|---|---|
committer | 2014-04-16 11:41:44 -0700 | |
commit | ef35a4f44bdc6f8c9f99a561fd1fd318305a4d98 (patch) | |
tree | 8beea2bf45b41e7b91fd544da43d89330ccb96d5 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | staging: goldfish: Call free_irq in error path (diff) | |
download | wireguard-linux-ef35a4f44bdc6f8c9f99a561fd1fd318305a4d98.tar.xz wireguard-linux-ef35a4f44bdc6f8c9f99a561fd1fd318305a4d98.zip |
staging: speakup: fix misuse of kstrtol() in handle_goto()
A string of goto_buf has a number followed by x or y.
e.g. "3x" means move 3 lines down.
The kstrtol() returns an error(-EINVAL) with this string so
go_pos has unsigned a value of that error.
And also "*cp" has not expected value.
And fix sparse warnings:
drivers/staging/speakup/main.c:1901 handle_goto() warn: unsigned '(speakup_console[vc->vc_num]->go_pos)' is never less than zero.
drivers/staging/speakup/main.c:1911 handle_goto() warn: unsigned '(speakup_console[vc->vc_num]->go_pos)' is never less than zero.
Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com>
Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions