[PATCH 3/3] __user annotation for dummy_shm_shmat

From: Chris Wright
Date: Mon Jun 14 2004 - 11:32:48 EST


Add proper __user annotation to dummy_shm_shmat.

CHECK security/dummy.c
security/dummy.c:995:2: warning: incorrect type in assignment (incompatible argument 2 (different address spaces))
security/dummy.c:995:2: expected int ( *[addressable] [toplevel] shm_shmat )( ... )
security/dummy.c:995:2: got int ( static [addressable] [toplevel] *<noident> )( ... )
CC security/dummy.o

Signed-off-by: Chris Wright <chrisw@xxxxxxxx>

===== security/dummy.c 1.39 vs edited =====
--- 1.39/security/dummy.c 2004-05-10 04:25:52 -07:00
+++ edited/security/dummy.c 2004-06-14 09:09:51 -07:00
@@ -688,7 +688,7 @@
return 0;
}

-static int dummy_shm_shmat (struct shmid_kernel *shp, char *shmaddr,
+static int dummy_shm_shmat (struct shmid_kernel *shp, char __user *shmaddr,
int shmflg)
{
return 0;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/