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
f598f9f1
Commit
f598f9f1
authored
Jan 23, 2010
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Sanitize autofs_dev_ioctl_ismountpoint()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
b1e4594b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
fs/autofs4/dev-ioctl.c
fs/autofs4/dev-ioctl.c
+4
-7
No files found.
fs/autofs4/dev-ioctl.c
View file @
f598f9f1
...
@@ -544,10 +544,9 @@ static int autofs_dev_ioctl_ismountpoint(struct file *fp,
...
@@ -544,10 +544,9 @@ static int autofs_dev_ioctl_ismountpoint(struct file *fp,
goto
out
;
goto
out
;
devid
=
new_encode_dev
(
path
.
mnt
->
mnt_sb
->
s_dev
);
devid
=
new_encode_dev
(
path
.
mnt
->
mnt_sb
->
s_dev
);
err
=
0
;
err
=
0
;
if
(
path
.
dentry
->
d_inode
&&
if
(
path
.
mnt
->
mnt_root
==
path
.
dentry
)
{
path
.
mnt
->
mnt_root
==
path
.
dentry
)
{
err
=
1
;
err
=
1
;
magic
=
path
.
dentry
->
d_inode
->
i
_sb
->
s_magic
;
magic
=
path
.
mnt
->
mnt
_sb
->
s_magic
;
}
}
}
else
{
}
else
{
dev_t
dev
=
sbi
->
sb
->
s_dev
;
dev_t
dev
=
sbi
->
sb
->
s_dev
;
...
@@ -560,11 +559,9 @@ static int autofs_dev_ioctl_ismountpoint(struct file *fp,
...
@@ -560,11 +559,9 @@ static int autofs_dev_ioctl_ismountpoint(struct file *fp,
err
=
have_submounts
(
path
.
dentry
);
err
=
have_submounts
(
path
.
dentry
);
if
(
path
.
mnt
->
mnt_mountpoint
!=
path
.
mnt
->
mnt_root
)
{
if
(
follow_down
(
&
path
))
if
(
follow_down
(
&
path
))
magic
=
path
.
mnt
->
mnt_sb
->
s_magic
;
magic
=
path
.
mnt
->
mnt_sb
->
s_magic
;
}
}
}
param
->
ismountpoint
.
out
.
devid
=
devid
;
param
->
ismountpoint
.
out
.
devid
=
devid
;
param
->
ismountpoint
.
out
.
magic
=
magic
;
param
->
ismountpoint
.
out
.
magic
=
magic
;
...
...
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