diff options
author | Jan Kara <jack@suse.cz> | 2015-06-02 12:38:39 +0200 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2015-06-15 10:51:12 +0200 |
commit | 8cb81811e924ff0214ce4e8344e2feb1549cf0ce (patch) | |
tree | 4bb8a52ff2121d335f893ad2d2cf4bfa89e47ece /drivers/block | |
parent | 2e4aa2f2bdcf9b80bace0b0c460bd407d76f49d3 (diff) | |
download | linux-8cb81811e924ff0214ce4e8344e2feb1549cf0ce.tar.gz linux-8cb81811e924ff0214ce4e8344e2feb1549cf0ce.tar.bz2 linux-8cb81811e924ff0214ce4e8344e2feb1549cf0ce.zip |
s390/keyboard: avoid off-by-one when using strnlen_user()
strnlen_user() returns the length of the string including terminating 0.
So avoid counting it again and unnecessarily reducing maximum string
size by 1.
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers/block')
0 files changed, 0 insertions, 0 deletions