Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
linux-guf
Manage
Activity
Members
Labels
Code
Merge requests
6
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SECO Northern Europe
Kernel
linux-guf
Commits
eb928d40
Commit
eb928d40
authored
10 years ago
by
Brian Norris
Browse files
Options
Downloads
Plain Diff
Merge JFFS2 updates from David Woodhouse
parents
dd58d38f
164c2406
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
fs/jffs2/scan.c
+5
-0
5 additions, 0 deletions
fs/jffs2/scan.c
with
5 additions
and
0 deletions
fs/jffs2/scan.c
+
5
−
0
View file @
eb928d40
...
...
@@ -510,6 +510,10 @@ static int jffs2_scan_eraseblock (struct jffs2_sb_info *c, struct jffs2_eraseblo
sumlen
=
c
->
sector_size
-
je32_to_cpu
(
sm
->
offset
);
sumptr
=
buf
+
buf_size
-
sumlen
;
/* sm->offset maybe wrong but MAGIC maybe right */
if
(
sumlen
>
c
->
sector_size
)
goto
full_scan
;
/* Now, make sure the summary itself is available */
if
(
sumlen
>
buf_size
)
{
/* Need to kmalloc for this. */
...
...
@@ -544,6 +548,7 @@ static int jffs2_scan_eraseblock (struct jffs2_sb_info *c, struct jffs2_eraseblo
}
}
full_scan:
buf_ofs
=
jeb
->
offset
;
if
(
!
buf_size
)
{
...
...
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