Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
c9a6bc45
Commit
c9a6bc45
authored
Apr 08, 2003
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add user pointer attributes to kernel/module.c
parent
42f3678e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
kernel/module.c
kernel/module.c
+6
-6
No files found.
kernel/module.c
View file @
c9a6bc45
...
@@ -462,7 +462,7 @@ void cleanup_module(void)
...
@@ -462,7 +462,7 @@ void cleanup_module(void)
EXPORT_SYMBOL
(
cleanup_module
);
EXPORT_SYMBOL
(
cleanup_module
);
asmlinkage
long
asmlinkage
long
sys_delete_module
(
const
char
*
name_user
,
unsigned
int
flags
)
sys_delete_module
(
const
char
__user
*
name_user
,
unsigned
int
flags
)
{
{
struct
module
*
mod
;
struct
module
*
mod
;
char
name
[
MODULE_NAME_LEN
];
char
name
[
MODULE_NAME_LEN
];
...
@@ -670,7 +670,7 @@ static int obsparm_copy_string(const char *val, struct kernel_param *kp)
...
@@ -670,7 +670,7 @@ static int obsparm_copy_string(const char *val, struct kernel_param *kp)
return
0
;
return
0
;
}
}
extern
int
set_obsolete
(
const
char
*
val
,
struct
kernel_param
*
kp
)
int
set_obsolete
(
const
char
*
val
,
struct
kernel_param
*
kp
)
{
{
unsigned
int
min
,
max
;
unsigned
int
min
,
max
;
unsigned
int
size
,
maxsize
;
unsigned
int
size
,
maxsize
;
...
@@ -1082,9 +1082,9 @@ static void set_license(struct module *mod, Elf_Shdr *sechdrs, int licenseidx)
...
@@ -1082,9 +1082,9 @@ static void set_license(struct module *mod, Elf_Shdr *sechdrs, int licenseidx)
/* Allocate and load the module: note that size of section 0 is always
/* Allocate and load the module: note that size of section 0 is always
zero, and we rely on this for optional sections. */
zero, and we rely on this for optional sections. */
static
struct
module
*
load_module
(
void
*
umod
,
static
struct
module
*
load_module
(
void
__user
*
umod
,
unsigned
long
len
,
unsigned
long
len
,
const
char
*
uargs
)
const
char
__user
*
uargs
)
{
{
Elf_Ehdr
*
hdr
;
Elf_Ehdr
*
hdr
;
Elf_Shdr
*
sechdrs
;
Elf_Shdr
*
sechdrs
;
...
@@ -1360,9 +1360,9 @@ static struct module *load_module(void *umod,
...
@@ -1360,9 +1360,9 @@ static struct module *load_module(void *umod,
/* This is where the real work happens */
/* This is where the real work happens */
asmlinkage
long
asmlinkage
long
sys_init_module
(
void
*
umod
,
sys_init_module
(
void
__user
*
umod
,
unsigned
long
len
,
unsigned
long
len
,
const
char
*
uargs
)
const
char
__user
*
uargs
)
{
{
struct
module
*
mod
;
struct
module
*
mod
;
int
ret
;
int
ret
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment