From: York Sun <yorksun@freescale.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] MPC85xx: Uninitialized variables and other problems
Date: Thu, 6 Nov 2014 15:31:46 -0800 [thread overview]
Message-ID: <545C04E2.1060400@freescale.com> (raw)
In-Reply-To: <20141106115451.5F63F382347@gemini.denx.de>
On 11/06/2014 03:54 AM, Wolfgang Denk wrote:
> Hello,
>
> cppcheck reports:
>
> [arch/powerpc/cpu/mpc85xx/cmd_errata.c:62]: (error) Uninitialized variable: x108
>
> [board/freescale/common/cds_pci_ft.c:36]: (error) Possible null pointer dereference: map
> [board/freescale/common/cds_pci_ft.c:52]: (error) Uninitialized variable: len
>
> [board/freescale/t4qds/eth.c:289]: (error) Undefined behavior: Variable 'buf' is used as parameter and destination in s[n]printf().
> [board/freescale/t4qds/eth.c:298]: (error) Undefined behavior: Variable 'buf' is used as parameter and destination in s[n]printf().
> [board/freescale/t4qds/eth.c:307]: (error) Undefined behavior: Variable 'buf' is used as parameter and destination in s[n]printf().
> [board/freescale/t4qds/eth.c:316]: (error) Undefined behavior: Variable 'buf' is used as parameter and destination in s[n]printf().
>
> [drivers/ddr/fsl/ctrl_regs.c:1659]: (error) Uninitialized variable: wr
> [drivers/ddr/fsl/ctrl_regs.c:2257]: (error) Uninitialized variable: ea
> [drivers/ddr/fsl/ctrl_regs.c:2256]: (error) Uninitialized variable: sa
> [drivers/ddr/fsl/ctrl_regs.c:1985]: (error) Uninitialized variable: zqcs_init
>
> [drivers/mmc/fsl_esdhc_spl.c:95]: (error) Dereferencing 'tmp_buf' after it is deallocated / released
> [drivers/mmc/fsl_esdhc_spl.c:98]: (error) Memory pointed to by 'tmp_buf' is freed twice.
> [drivers/mmc/fsl_esdhc_spl.c:101]: (error) Dereferencing 'tmp_buf' after it is deallocated / released
> [drivers/mmc/fsl_esdhc_spl.c:104]: (error) Memory pointed to by 'tmp_buf' is freed twice.
>
>
>
> Can you please have a look and fix these?
>
> Thanks in advance.
Yes I will look into them when I have a chance.
York
prev parent reply other threads:[~2014-11-06 23:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-06 11:54 [U-Boot] MPC85xx: Uninitialized variables and other problems Wolfgang Denk
2014-11-06 23:31 ` York Sun [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=545C04E2.1060400@freescale.com \
--to=yorksun@freescale.com \
--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