]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
fs/compat_rw_copy_check_uvector: add missing compat_ptr call
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Fri, 4 Jun 2010 21:14:47 +0000 (14:14 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 5 Jul 2010 18:22:38 +0000 (11:22 -0700)
commitfa31d3fc1debc200bf66240519e77aac606d40fa
treebed837e8663d507233da5a0e53ee28e3cc9d1446
parentfed3ff43e1c970cc7de6f32f795f515d4645e2a0
fs/compat_rw_copy_check_uvector: add missing compat_ptr call

commit 7cbe17701a0379c7b05a79a6df4f24e41d2afde8 upstream.

A call to access_ok is missing a compat_ptr conversion.  Introduced with
b83733639a494d5f42fa00a2506563fbd2d3015d "compat: factor out
compat_rw_copy_check_uvector from compat_do_readv_writev"

fs/compat.c: In function 'compat_rw_copy_check_uvector':
fs/compat.c:629: warning: passing argument 1 of '__access_ok' makes pointer from integer without a cast

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Reviewed-by: Jeff Moyer <jmoyer@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/compat.c