Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
MMC U-Boot Custodian Tree
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
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
U-Boot
Custodians
MMC U-Boot Custodian Tree
Commits
1264b405
Commit
1264b405
authored
19 years ago
by
Wolfgang Denk
Browse files
Options
Downloads
Patches
Plain Diff
Avoid dereferencing NULL in find_cmd() if no valid commands were found
Patch by Andrew Dyer, 13 Jun 2005
parent
6cb142fa
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG
+3
-0
3 additions, 0 deletions
CHANGELOG
common/main.c
+6
-3
6 additions, 3 deletions
common/main.c
with
9 additions
and
3 deletions
CHANGELOG
+
3
−
0
View file @
1264b405
...
...
@@ -2,6 +2,9 @@
Changes since U-Boot 1.1.4:
======================================================================
* Avoid dereferencing NULL in find_cmd() if no valid commands were found
Patch by Andrew Dyer, 13 Jun 2005
* Add ADI Blackfin support
- add support for Analog Devices Blackfin BF533 CPU
- add support for the ADI BF533 Stamp uClinux board
...
...
This diff is collapsed.
Click to expand it.
common/main.c
+
6
−
3
View file @
1264b405
...
...
@@ -919,7 +919,10 @@ int run_command (const char *cmd, int flag)
process_macros
(
token
,
finaltoken
);
/* Extract arguments */
argc
=
parse_line
(
finaltoken
,
argv
);
if
((
argc
=
parse_line
(
finaltoken
,
argv
))
==
0
)
{
rc
=
-
1
;
/* no command at all */
continue
;
}
/* Look up command in command table */
if
((
cmdtp
=
find_cmd
(
argv
[
0
]))
==
NULL
)
{
...
...
@@ -945,9 +948,9 @@ int run_command (const char *cmd, int flag)
puts
(
"'bootd' recursion detected
\n
"
);
rc
=
-
1
;
continue
;
}
else
}
else
{
flag
|=
CMD_FLAG_BOOTD
;
}
}
#endif
/* CFG_CMD_BOOTD */
...
...
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