mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] trivial __user annotations (ipmi)
@ 2005-09-09 19:14 viro
  0 siblings, 0 replies; only message in thread
From: viro @ 2005-09-09 19:14 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: linux-kernel, Corey Minyard

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
----
diff -urN RC13-git8-base/drivers/char/ipmi/ipmi_devintf.c current/drivers/char/ipmi/ipmi_devintf.c
--- RC13-git8-base/drivers/char/ipmi/ipmi_devintf.c	2005-09-08 10:17:39.000000000 -0400
+++ current/drivers/char/ipmi/ipmi_devintf.c	2005-09-08 23:53:33.000000000 -0400
@@ -735,7 +735,8 @@
 	case COMPAT_IPMICTL_RECEIVE_MSG:
 	case COMPAT_IPMICTL_RECEIVE_MSG_TRUNC:
 	{
-		struct ipmi_recv   *precv64, recv64;
+		struct ipmi_recv   __user *precv64;
+		struct ipmi_recv   recv64;
 
 		if (get_compat_ipmi_recv(&recv64, compat_ptr(arg)))
 			return -EFAULT;
@@ -748,7 +749,7 @@
 				((cmd == COMPAT_IPMICTL_RECEIVE_MSG)
 				 ? IPMICTL_RECEIVE_MSG
 				 : IPMICTL_RECEIVE_MSG_TRUNC),
-				(long) precv64);
+				(unsigned long) precv64);
 		if (rc != 0)
 			return rc;
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-09-09 19:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-09 19:14 [PATCH] trivial __user annotations (ipmi) viro

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

all inboxes | Powered by JetHome®