[U-Boot] [PATCH v2 1/7] ac14xx: fix a potential NULL deref in diagnostics

Wolfgang Denk wd at denx.de
Mon Jun 24 22:25:46 CEST 2013


Dear Gerhard Sittig,

In message <1370436671-12422-2-git-send-email-gsi at denx.de> you wrote:
> getenv() immediately after setenv() may perfectly legally return NULL, so
> make sure to not deference an invalid pointer when creating diagnostic output
> 
> Signed-off-by: Gerhard Sittig <gsi at denx.de>
> ---
>  board/ifm/ac14xx/ac14xx.c |    8 ++++++--
>  1 file changed, 6 insertions(+), 2 deletions(-)

Applied to u-boot-mpc5xxx, thanks.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
My brother sent me a postcard the other day with this  big  sattelite
photo  of the entire earth on it. On the back it said: "Wish you were
here".                                                - Steven Wright


More information about the U-Boot mailing list