lkml.org 
[lkml]   [2013]   [May]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] net/core Fix wrong comments about memcpy_fromiovecend
Date
"Copy iovec from kernel" should be "Copy iovec to kernel"
because copy_from_user copies data from userspace.

Signed-off-by: Jonghwan Choi <jhbird.choi@samsung.com>
---
net/core/iovec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/core/iovec.c b/net/core/iovec.c
index 7e7aeb0..ba93fd2 100644
--- a/net/core/iovec.c
+++ b/net/core/iovec.c
@@ -150,7 +150,7 @@ int memcpy_fromiovec(unsigned char *kdata, struct iovec
*iov, int len)
EXPORT_SYMBOL(memcpy_fromiovec);

/*
- * Copy iovec from kernel. Returns -EFAULT on error.
+ * Copy iovec to kernel. Returns -EFAULT on error.
*/

int memcpy_fromiovecend(unsigned char *kdata, const struct iovec *iov,
--
1.7.


\
 
 \ /
  Last update: 2013-05-08 04:41    [W:0.419 / U:0.068 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site