summaryrefslogtreecommitdiffstats
path: root/drivers/platform/goldfish/goldfish_pipe.c
diff options
context:
space:
mode:
authorAlan Cox2013-01-23 15:13:18 +0100
committerGreg Kroah-Hartman2013-01-24 22:51:38 +0100
commit17c4c9db4a33ae0a8dcfafab3dc59a83ccaf6076 (patch)
tree81d55fa14f114cf3d8e12d080032441e4fb0bce1 /drivers/platform/goldfish/goldfish_pipe.c
parentgoldfish: add QEMU pipe driver (diff)
downloadkernel-qcow2-linux-17c4c9db4a33ae0a8dcfafab3dc59a83ccaf6076.tar.gz
kernel-qcow2-linux-17c4c9db4a33ae0a8dcfafab3dc59a83ccaf6076.tar.xz
kernel-qcow2-linux-17c4c9db4a33ae0a8dcfafab3dc59a83ccaf6076.zip
goldfish: Add a FIXME note to the pipe driver
Note a point in the pipe driver that wants future attention Signed-off-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/platform/goldfish/goldfish_pipe.c')
-rw-r--r--drivers/platform/goldfish/goldfish_pipe.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/platform/goldfish/goldfish_pipe.c b/drivers/platform/goldfish/goldfish_pipe.c
index 58dae1f1fdd4..4f5aa831f549 100644
--- a/drivers/platform/goldfish/goldfish_pipe.c
+++ b/drivers/platform/goldfish/goldfish_pipe.c
@@ -300,6 +300,7 @@ static ssize_t goldfish_pipe_read_write(struct file *filp, char __user *buffer,
int status, wakeBit;
/* Ensure that the corresponding page is properly mapped */
+ /* FIXME: this isn't safe or sufficient - use get_user_pages */
if (is_write) {
char c;
/* Ensure that the page is mapped and readable */