Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Kirill Smelkov
linux
Commits
d5e567ce
Commit
d5e567ce
authored
22 years ago
by
Dave Kleikamp
Browse files
Options
Download
Email Patches
Plain Diff
JFS: return code from sb_bread was incorrectly checked
parent
308528a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
fs/jfs/jfs_mount.c
fs/jfs/jfs_mount.c
+2
-2
No files found.
fs/jfs/jfs_mount.c
View file @
d5e567ce
...
...
@@ -478,12 +478,12 @@ int readSuper(struct super_block *sb, struct buffer_head **bpp)
{
/* read in primary superblock */
*
bpp
=
sb_bread
(
sb
,
SUPER1_OFF
>>
sb
->
s_blocksize_bits
);
if
(
bpp
)
if
(
*
bpp
)
return
0
;
/* read in secondary/replicated superblock */
*
bpp
=
sb_bread
(
sb
,
SUPER2_OFF
>>
sb
->
s_blocksize_bits
);
if
(
bpp
)
if
(
*
bpp
)
return
0
;
return
-
EIO
;
...
...
This diff is collapsed.
Click to expand it.
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