Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Arm Trusted Firmware
Commits
0dc3c353
Commit
0dc3c353
authored
Jun 16, 2017
by
davidcunado-arm
Committed by
GitHub
Jun 16, 2017
Browse files
Merge pull request #984 from masahir0y/uniphier
uniphier memory-overrun bug fix
parents
3b6947ec
3eba78d3
Changes
1
Hide whitespace changes
Inline
Side-by-side
plat/socionext/uniphier/uniphier_nand.c
View file @
0dc3c353
...
...
@@ -106,8 +106,9 @@ static int uniphier_nand_block_isbad(struct uniphier_nand *nand, int block)
is_bad
=
bbm
!=
0xff
;
/* save the result for future re-use */
nand
->
bbt
[
block
]
=
is_bad
;
/* if possible, save the result for future re-use */
if
(
block
<
ARRAY_SIZE
(
nand
->
bbt
))
nand
->
bbt
[
block
]
=
is_bad
;
if
(
is_bad
)
WARN
(
"found bad block at %d. skip.
\n
"
,
block
);
...
...
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