瀏覽代碼

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>
Alan Cox 12 年之前
父節點
當前提交
17c4c9db4a
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      drivers/platform/goldfish/goldfish_pipe.c

+ 1 - 0
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;
 		int status, wakeBit;
 
 
 		/* Ensure that the corresponding page is properly mapped */
 		/* Ensure that the corresponding page is properly mapped */
+		/* FIXME: this isn't safe or sufficient - use get_user_pages */
 		if (is_write) {
 		if (is_write) {
 			char c;
 			char c;
 			/* Ensure that the page is mapped and readable */
 			/* Ensure that the page is mapped and readable */