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

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
----
diff -urN RC13-git8-base/drivers/md/md.c current/drivers/md/md.c
--- RC13-git8-base/drivers/md/md.c	2005-08-28 23:09:43.000000000 -0400
+++ current/drivers/md/md.c	2005-09-08 23:53:33.000000000 -0400
@@ -2087,7 +2087,7 @@
 	return 0;
 }
 
-static int get_bitmap_file(mddev_t * mddev, void * arg)
+static int get_bitmap_file(mddev_t * mddev, void __user * arg)
 {
 	mdu_bitmap_file_t *file = NULL; /* too big for stack allocation */
 	char *ptr, *buf = NULL;
@@ -2781,7 +2781,7 @@
 			goto done_unlock;
 
 		case GET_BITMAP_FILE:
-			err = get_bitmap_file(mddev, (void *)arg);
+			err = get_bitmap_file(mddev, argp);
 			goto done_unlock;
 
 		case GET_DISK_INFO:

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

only message in thread, other threads:[~2005-09-09 19:37 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:36 [PATCH] trivial __user annotations (md) 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®