Skip to contentSkip to conversation

misc __user misannotations (pointless casts to long)

PATCH New Al Viro 1 participant 1 message Mar 29, 2008

lore
Share & tools
lore

Al Viro

author
#0 lore raw

PATCH 1/1 misc __user misannotations (pointless casts to long)

---
 drivers/lguest/lguest_user.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/lguest/lguest_user.c +1 -1
index 2221485..3b67da9 100644
@@ -182,7 +182,7 @@ static int initialize(struct file *file, const unsigned long __user *input)
 	}
 
 	/* Populate the easy fields of our "struct lguest" */
-	lg->mem_base = (void __user *)(long)args[0];
+	lg->mem_base = (void __user *)args[0];
 	lg->pfn_limit = args[1];
 
 	/* This is the first cpu */
Signature · 1 line
1.5.3.GIT