All of lore.kernel.org
 help / color / mirror / Atom feed
* [Adeos-main] [PATCH] fix copy_from_user evaluation
@ 2007-10-26 19:57 Jan Kiszka
  0 siblings, 0 replies; only message in thread
From: Jan Kiszka @ 2007-10-26 19:57 UTC (permalink / raw)
  To: adeos-main; +Cc: Philippe Gerum


[-- Attachment #1.1: Type: text/plain, Size: 33 bytes --]

/me produced a nop here.

Jan

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: tracer-fix-copy_from_user-evaluation.patch --]
[-- Type: text/x-patch; name="tracer-fix-copy_from_user-evaluation.patch", Size: 593 bytes --]

---
 kernel/ipipe/tracer.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: linux-2.6.23.1-xeno/kernel/ipipe/tracer.c
===================================================================
--- linux-2.6.23.1-xeno.orig/kernel/ipipe/tracer.c
+++ 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')

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 252 bytes --]

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

only message in thread, other threads:[~2007-10-26 19:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-26 19:57 [Adeos-main] [PATCH] fix copy_from_user evaluation Jan Kiszka

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.