Skip to contentSkip to conversation

fix copy_from_user evaluation

PATCH New Jan Kiszka 1 participant 1 message Oct 26, 2007

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/1 fix copy_from_user evaluation

/me produced a nop here.

Jan

---
 kernel/ipipe/tracer.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/ipipe/tracer.c +1 -1
Index: linux-2.6.23.1-xeno/kernel/ipipe/tracer.c
===================================================================
@@ -1229,7 +1229,7 @@ static int __ipipe_wr_trigger(struct fil
 
 	if (count > sizeof(buf) - 1)
 		count = sizeof(buf) - 1;
-	if (copy_from_user(buf, buffer, count) < 0)
+	if (copy_from_user(buf, buffer, count))
 		return -EFAULT;
 	buf[count] = 0;
 	if (buf[count-1] == '\n')