public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] staging:lustre:lnet: Incorrect type in assignment
@ 2014-12-01  6:18 sunwxg
  2014-12-01  6:33 ` Joe Perches
  0 siblings, 1 reply; 4+ messages in thread
From: sunwxg @ 2014-12-01  6:18 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Andreas Dilger, Amir Shehata, Peng Tao,
	Doug Oucharek
  Cc: Sun Wang, devel, linux-kernel

From: Sun Wang <sun.wxg@gmail.com>

Incorrect type when assign value to varible iov_base.

Signed-off-by: Sun Wang <sun.wxg@gmail.com>

---
.../drivers => drivers}/staging/lustre/lnet/lnet/lib-move.c            | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/staging/lustre/lnet/lnet/lib-move.c b/drivers/staging/lustre/lnet/lnet/lib-move.c
index 4b9567d..7b22c6e 100644
--- a/drivers/staging/lustre/lnet/lnet/lib-move.c
+++ b/drivers/staging/lustre/lnet/lnet/lib-move.c
@@ -256,7 +256,8 @@ lnet_extract_iov(int dst_niov, struct iovec *dst,
 		LASSERT((int)niov <= dst_niov);
 
 		frag_len = src->iov_len - offset;
-		dst->iov_base = ((char *)src->iov_base) + offset;
+		dst->iov_base = (void __user *)
+				(((char *)src->iov_base) + offset);
 
 		if (len <= frag_len) {
 			dst->iov_len = len;

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-12-02 17:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1417416832-10352-1-git-send-email-sun.wxg@gmail.com>
2014-12-01  6:53 ` [PATCH] staging:lustre:lnet: Incorrect type in assignment sunwxg
2014-12-02 17:15   ` Al Viro
2014-12-01  6:18 sunwxg
2014-12-01  6:33 ` Joe Perches

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox