Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
Linux
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
E-EXK4 - Operating System Group
projects
Linux
Commits
c972b4bc
Commit
c972b4bc
authored
13 years ago
by
Al Viro
Browse files
Options
Downloads
Patches
Plain Diff
vfs: live vfsmounts never have NULL ->mnt_sb
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
4c1d5a64
Loading
Loading
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
drivers/usb/core/inode.c
+2
-3
2 additions, 3 deletions
drivers/usb/core/inode.c
fs/configfs/dir.c
+1
-1
1 addition, 1 deletion
fs/configfs/dir.c
with
3 additions
and
4 deletions
drivers/usb/core/inode.c
+
2
−
3
View file @
c972b4bc
...
...
@@ -264,7 +264,7 @@ static int remount(struct super_block *sb, int *flags, char *data)
return
-
EINVAL
;
}
if
(
usbfs_mount
&&
usbfs_mount
->
mnt_sb
)
if
(
usbfs_mount
)
update_sb
(
usbfs_mount
->
mnt_sb
);
return
0
;
...
...
@@ -500,9 +500,8 @@ static int fs_create_by_name (const char *name, mode_t mode,
* have around.
*/
if
(
!
parent
)
{
if
(
usbfs_mount
&&
usbfs_mount
->
mnt_sb
)
{
if
(
usbfs_mount
)
parent
=
usbfs_mount
->
mnt_root
;
}
}
if
(
!
parent
)
{
...
...
This diff is collapsed.
Click to expand it.
fs/configfs/dir.c
+
1
−
1
View file @
c972b4bc
...
...
@@ -311,7 +311,7 @@ static int configfs_create_dir(struct config_item * item, struct dentry *dentry)
if
(
item
->
ci_parent
)
parent
=
item
->
ci_parent
->
ci_dentry
;
else
if
(
configfs_mount
&&
configfs_mount
->
mnt_sb
)
else
if
(
configfs_mount
)
parent
=
configfs_mount
->
mnt_root
;
else
return
-
EFAULT
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment