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
0ebd1760
Commit
0ebd1760
authored
May 08, 2002
by
Dave Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] swap file missing error check
Found by Andries Brouwer a while back iirc.
parent
3f0501fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
mm/swapfile.c
mm/swapfile.c
+1
-1
No files found.
mm/swapfile.c
View file @
0ebd1760
...
@@ -1088,7 +1088,7 @@ asmlinkage long sys_swapon(const char * specialfile, int swap_flags)
...
@@ -1088,7 +1088,7 @@ asmlinkage long sys_swapon(const char * specialfile, int swap_flags)
swap_list_unlock
();
swap_list_unlock
();
if
(
swap_map
)
if
(
swap_map
)
vfree
(
swap_map
);
vfree
(
swap_map
);
if
(
swap_file
)
if
(
swap_file
&&
!
IS_ERR
(
swap_file
)
)
filp_close
(
swap_file
,
NULL
);
filp_close
(
swap_file
,
NULL
);
out:
out:
if
(
swap_header
)
if
(
swap_header
)
...
...
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