[U-Boot-Users] [PATCH] "nand lock status" bug fix

Conke Hu conke.hu at gmail.com
Sun Jul 22 06:19:57 CEST 2007


On 7/19/07, Conke Hu <conke.hu at gmail.com> wrote:
> there are 2 bugs in the code of nand command "nand lock status"
> (function do_nand() in common/cmd_nand.c):
> 1. "last_status" defined but never step forward.
> 2. the last page never be printed
> the following patch fixes them.
>
> Signed-off-by: conke.hu at gmail.com
> ----------------------------------------
> diff --git a/common/cmd_nand.c b/common/cmd_nand.c
> index cb62661..7e00c97 100644
> --- a/common/cmd_nand.c
> +++ b/common/cmd_nand.c
> @@ -388,7 +388,7 @@ int do_nand(cmd_tbl_t * cmdtp, int flag, int argc,
> char *argv[])
>                if (status) {
>                        ulong block_start = 0;
>                        ulong off;
> -                       int last_status = -1;
> +                       int last_status;
>
>   <snip>

I am sorry but, anybody could tell me how to submit a patch pls? I am
looking forward to any kind reply about this patch, but it seems
nobody pays attention to it :(

Conke




More information about the U-Boot mailing list