From: Stefano Babic <sbabic@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] Crash in env_relocate_spec() of env_mmc.c
Date: Fri, 08 Oct 2010 18:03:59 +0200 [thread overview]
Message-ID: <4CAF40EF.8090009@denx.de> (raw)
In-Reply-To: <AANLkTinkoOR75PRznLrF+U=raNMWgERGX5NdKULSuiy7@mail.gmail.com>
Steve Sakoman wrote:
> On Fri, Oct 8, 2010 at 1:03 AM, Stefano Babic <sbabic@denx.de> wrote:
>> mmc_initialize is not called at the startup if the
>> relocation takes place and the environment is stored
>> into a MMC card.
>>
Hallo Steve,
> I think it might make more sense to put the MMC ifdef after the
> onenand code so that it doesn't split the nand/onenand grouping.
> Otherwise it matches what I did.
Yes, it makes more sens - and I do not see any problem to move it
>
> This is a void function and shouldn't have a return value. I fixed
> this in my version.
Agree.
>
>> gd->env_valid = 1;
>
> I removed this in my version, probably an error to do that though :-)
Or probably not...env_valid should signalize if the checksum is correct,
and now the checksum is verified by the env_import function, as I have
understood.
> I previously submitted a patch to fix this and Wolfgang sent an email
> saying that it had been applied.
Ah, ok, I have missed it ;-)
> I'll revise my patch to add the missing gd->env_valid = 1; and re-test.
Ok, thanks
Stefano
--
=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de
=====================================================================
prev parent reply other threads:[~2010-10-08 16:03 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-08 8:03 [U-Boot] [PATCH] Crash in env_relocate_spec() of env_mmc.c Stefano Babic
2010-10-08 11:04 ` Sergei Shtylyov
2010-10-08 11:26 ` Stefano Babic
2010-10-08 13:39 ` Steve Sakoman
2010-10-08 13:42 ` Steve Sakoman
2010-10-08 16:05 ` Stefano Babic
2010-10-08 16:21 ` Steve Sakoman
2010-10-08 18:13 ` Stefano Babic
2010-10-08 16:03 ` Stefano Babic [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4CAF40EF.8090009@denx.de \
--to=sbabic@denx.de \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox