[PATCH][2.6] rtas error-inject support

Hollis Blanchard hollisb at us.ibm.com
Sat Jan 31 04:27:47 EST 2004


On Jan 30, 2004, at 10:40 AM, Jake Moilanen wrote:

> Here is support for the rtas error-inject call.

[snip]

+static ssize_t ppc_rtas_errinjct_read(struct file *file, char *buf,
+				      size_t count, loff_t *ppos)
...
+	memcpy(buf, buffer + *ppos, n);

That should be copy_to_user(), right? (ppc_rtas_errinjct_write() does
use copy_from_user().)

--
Hollis Blanchard
IBM Linux Technology Center


** Sent via the linuxppc64-dev mail list. See http://lists.linuxppc.org/





More information about the Linuxppc64-dev mailing list