lkml.org 
[lkml]   [2003]   [Jul]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
Subject[PATCH] fix return of compat_sys_sched_getaffinity
From
-EFAULT return got buggered when compat_sys_sched_getaffinity
was added in 2.5.68.

--- linux-2.5.74/kernel/compat.c.orig 2003-06-22 15:54:17.000000000 -0400
+++ linux-2.5.74/kernel/compat.c 2003-07-06 11:29:33.000000000 -0400
@@ -425,11 +425,9 @@
&kernel_mask);
set_fs(old_fs);

- if (ret > 0) {
+ if (ret > 0)
if (put_user(kernel_mask, user_mask_ptr))
- ret = -EFAULT;
- ret = sizeof(compat_ulong_t);
- }
+ return -EFAULT;

return ret;
}
--
Randy Hron
http://home.earthlink.net/~rwhron/kernel/bigbox.html

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:46    [W:0.020 / U:0.088 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site