diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2013-10-14 15:58:10 +0400 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2013-10-24 19:17:07 +0400 |
commit | 041058a16a71a1257a1c3c19a55d74641912b918 (patch) | |
tree | a0754183b0adea5d2eb335438270ff45fd6e1e49 /arch/s390/appldata/appldata_base.c | |
parent | 160d378ebc76a796cc16ae873baeed02992f9202 (diff) | |
download | linux-041058a16a71a1257a1c3c19a55d74641912b918.tar.xz |
s390/cmm: make copy_from_user() invocation provably correct
Get rid of these two warnings:
In function 'copy_from_user',
inlined from 'cmm_timeout_handler' at arch/s390/mm/cmm.c:310:
uaccess.h:303: warning: call to 'copy_from_user_overflow' declared
with attribute warning: copy_from_user() buffer size is not provably
correct
In function 'copy_from_user',
inlined from 'cmm_pages_handler' at arch/s390/mm/cmm.c:270:
uaccess.h:303: warning: call to 'copy_from_user_overflow' declared
with attribute warning: copy_from_user() buffer size is not provably
correct
Change the "len" type to unsigned int, so we can make sure that there is no
buffer overflow. This also generates less code.
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/appldata/appldata_base.c')
0 files changed, 0 insertions, 0 deletions