From: Heiko Carstens Date: Mon, 14 Oct 2013 11:58:10 +0000 (+0200) Subject: s390/cmm: make copy_from_user() invocation provably correct X-Git-Tag: omap-for-v3.13/fixes-for-merge-window-take2~58^2~25 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=041058a16a71a1257a1c3c19a55d74641912b918;p=pandora-kernel.git 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 Signed-off-by: Martin Schwidefsky --- Reading git-diff-tree failed