summaryrefslogtreecommitdiffstats
path: root/include/scsi/scsi_transport_fc.h
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2015-06-02 12:38:39 +0200
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2015-06-15 10:51:12 +0200
commit8cb81811e924ff0214ce4e8344e2feb1549cf0ce (patch)
tree4bb8a52ff2121d335f893ad2d2cf4bfa89e47ece /include/scsi/scsi_transport_fc.h
parent2e4aa2f2bdcf9b80bace0b0c460bd407d76f49d3 (diff)
downloadop-kernel-dev-8cb81811e924ff0214ce4e8344e2feb1549cf0ce.zip
op-kernel-dev-8cb81811e924ff0214ce4e8344e2feb1549cf0ce.tar.gz
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 'include/scsi/scsi_transport_fc.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud