diff options
author | Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it> | 2005-07-14 07:33:37 (GMT) |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-07-14 16:00:24 (GMT) |
commit | 2e5e55923e315e8198f46f24f7ca37e1fd9aa102 (patch) | |
tree | 251aa6211d8d822350bed40cc021c9bf710110a6 /include/asm-um/ldt.h | |
parent | 1feb8d2d7396748fb3bd6795d09bbfbdd4c03dff (diff) | |
download | linux-fsl-qoriq-2e5e55923e315e8198f46f24f7ca37e1fd9aa102.tar.xz |
[PATCH] uml: consolidate modify_ldt
*) Reorganize the two cases of sys_modify_ldt to share all the reasonably
common code.
*) Avoid memory allocation when unneeded (i.e. when we are writing and the
passed buffer size is known), thus not returning ENOMEM (which isn't
allowed for this syscall, even if there is no strict "specification").
*) Add copy_{from,to}_user to modify_ldt for TT mode.
Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Cc: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/asm-um/ldt.h')
-rw-r--r-- | include/asm-um/ldt.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/asm-um/ldt.h b/include/asm-um/ldt.h new file mode 100644 index 0000000..e908439 --- /dev/null +++ b/include/asm-um/ldt.h @@ -0,0 +1,5 @@ +#ifndef __UM_LDT_H +#define __UM_LDT_H + +#include "asm/arch/ldt.h" +#endif |