lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1417414684-9726-2-git-send-email-sun.wxg@gmail.com>
Date:	Mon,  1 Dec 2014 14:18:04 +0800
From:	sunwxg <sun.wxg@...il.com>
To:	Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
	Andreas Dilger <andreas.dilger@...el.com>,
	Amir Shehata <amir.shehata@...el.com>,
	Peng Tao <bergwolf@...il.com>,
	Doug Oucharek <doug.s.oucharek@...el.com>
Cc:	Sun Wang <sun.wxg@...il.com>, devel@...verdev.osuosl.org,
	linux-kernel@...r.kernel.org
Subject: [PATCH] staging:lustre:lnet: Incorrect type in assignment 

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

Incorrect type when assign value to varible iov_base.

Signed-off-by: Sun Wang <sun.wxg@...il.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;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ