projects
/
yaffs2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
yaffs u-boot: Fix problem if an illegal nand chip number is entered.
[yaffs2.git]
/
direct
/
u-boot
/
fs
/
yaffs2
/
yaffs_uboot_glue.c
diff --git
a/direct/u-boot/fs/yaffs2/yaffs_uboot_glue.c
b/direct/u-boot/fs/yaffs2/yaffs_uboot_glue.c
index c9d5604ccb3b123a82fc2d6d9d98c125c75c046f..f4a3eb62079a814f69af4de742bf7cf34aac5351 100644
(file)
--- a/
direct/u-boot/fs/yaffs2/yaffs_uboot_glue.c
+++ b/
direct/u-boot/fs/yaffs2/yaffs_uboot_glue.c
@@
-183,6
+183,7
@@
void cmd_yaffs_devconfig(char *_mp, int flash_dev, int start_block, int end_bloc
if(flash_dev >= CONFIG_SYS_MAX_NAND_DEVICE) {
printf("Flash device invalid\n");
+ goto err;
}
if(end_block == 0)