Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
0b6585ce
Commit
0b6585ce
authored
May 29, 2009
by
David Woodhouse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mtd: Fix pointer handling in compat ioctls to use compat_ptr()
Signed-off-by:
David Woodhouse
<
David.Woodhouse@intel.com
>
parent
668ff9ab
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
drivers/mtd/mtdchar.c
drivers/mtd/mtdchar.c
+2
-2
No files found.
drivers/mtd/mtdchar.c
View file @
0b6585ce
...
@@ -839,7 +839,7 @@ static long mtd_compat_ioctl(struct file *file, unsigned int cmd,
...
@@ -839,7 +839,7 @@ static long mtd_compat_ioctl(struct file *file, unsigned int cmd,
struct
inode
*
inode
=
file
->
f_path
.
dentry
->
d_inode
;
struct
inode
*
inode
=
file
->
f_path
.
dentry
->
d_inode
;
struct
mtd_file_info
*
mfi
=
file
->
private_data
;
struct
mtd_file_info
*
mfi
=
file
->
private_data
;
struct
mtd_info
*
mtd
=
mfi
->
mtd
;
struct
mtd_info
*
mtd
=
mfi
->
mtd
;
void
__user
*
argp
=
(
void
__user
*
)
arg
;
void
__user
*
argp
=
compat_ptr
(
arg
)
;
int
ret
=
0
;
int
ret
=
0
;
lock_kernel
();
lock_kernel
();
...
@@ -874,7 +874,7 @@ static long mtd_compat_ioctl(struct file *file, unsigned int cmd,
...
@@ -874,7 +874,7 @@ static long mtd_compat_ioctl(struct file *file, unsigned int cmd,
break
;
break
;
}
}
default:
default:
ret
=
mtd_ioctl
(
inode
,
file
,
cmd
,
arg
);
ret
=
mtd_ioctl
(
inode
,
file
,
cmd
,
(
unsigned
long
)
argp
);
}
}
unlock_kernel
();
unlock_kernel
();
...
...
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