[U-Boot] [PATCH 006/126] dm: core: Correct bad cast in ofnode_get_addr_size_index()
Bin Meng
bmeng.cn at gmail.com
Thu Oct 3 13:14:29 UTC 2019
On Thu, Oct 3, 2019 at 8:48 PM Bin Meng <bmeng.cn at gmail.com> wrote:
>
> On Wed, Sep 25, 2019 at 10:58 PM Simon Glass <sjg at chromium.org> wrote:
> >
> > At present this code passes an fdt_addr_t pointer as a u64 pointer which
> > is not save, since sizeof(fdt_addr_t) may be 4, e.g. with sandbox. Correct
>
> not safe
Fixed this typo, and
>
> > this to avoid a stack corruption problem.
> >
> > Fixes: e679d03b08 (core: ofnode: Add ofnode_get_addr_size_index)
> > Signed-off-by: Simon Glass <sjg at chromium.org>
> > ---
> >
> > drivers/core/ofnode.c | 7 +++++--
> > 1 file changed, 5 insertions(+), 2 deletions(-)
> >
>
> Reviewed-by: Bin Meng <bmeng.cn at gmail.com>
>
> I think this should go in v2019.10.
>
> Tom, I will prepare a PR soon.
applied to u-boot-x86, thanks!
More information about the U-Boot
mailing list