Skip to content
Snippets Groups Projects
Commit 2a86a53c authored by oharboe's avatar oharboe
Browse files

David Brownell <david-b@pacbell.net> Minor code bugfix: check right variable.

Via code review by Steve Grubb <sgrubb@redhat.com> 

Almost innocuous; this is value is checked later, this
check being wrong would make it check stack garbage.

git-svn-id: svn://svn.berlios.de/openocd/trunk@2655 b42882b7-edfa-0310-969c-e2dbd0fdcd60
parent 072d6d3d
No related branches found
No related tags found
No related merge requests found
......@@ -663,7 +663,7 @@ static int davinci_nand_device_command(struct command_context_s *cmd_ctx,
}
aemif = strtoul(argv[4], &ep, 0);
if (*ep || chip == 0 || chip == ULONG_MAX) {
if (*ep || aemif == 0 || aemif == ULONG_MAX) {
LOG_ERROR("Invalid AEMIF controller address %s", argv[4]);
goto fail;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment