]> git.karo-electronics.de Git - karo-tx-linux.git/commit
fs: add missing compat_ptr handling for FS_IOC_RESVSP ioctl
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Wed, 11 Nov 2009 22:26:34 +0000 (14:26 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 8 Dec 2009 18:21:19 +0000 (10:21 -0800)
commitbd7d2351462306b3244c3572c48670c77aa21528
tree920d63553ab391fafd40c5899654431e7669eef9
parent4549526e54461f6be8b229703d3c9488da1eb131
fs: add missing compat_ptr handling for FS_IOC_RESVSP ioctl

commit 7779d7bed950a7fb1af4f540c2f82a6b81b65901 upstream.

For FS_IOC_RESVSP and FS_IOC_RESVSP64 compat_sys_ioctl() uses its
arg argument as a pointer to userspace. However it is missing a
a call to compat_ptr() which will do a proper pointer conversion.

This was introduced with 3e63cbb1 "fs: Add new pre-allocation ioctls
to vfs for compatibility with legacy xfs ioctls".

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: Ankit Jain <me@ankitjain.org>
Acked-by: Christoph Hellwig <hch@lst.de>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Acked-by: Arnd Bergmann <arndbergmann@googlemail.com>
Acked-by: David S. Miller <davem@davemloft.net>
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_ioctl.c