[U-Boot] [PATCH 1/1] net: mvpp2x: add check after calloc
Joe Hershberger
joe.hershberger at ni.com
Wed Mar 7 18:03:50 UTC 2018
On Tue, Mar 6, 2018 at 8:39 PM, Heinrich Schuchardt <xypron.glpk at gmx.de> wrote:
> After allocating plat the pointer is checked.
> Afterwards name is allocated and not checked.
>
> Add the missing check to avoid a possible NULL dereference.
>
> Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
Acked-by: Joe Hershberger <joe.hershberger at ni.com>
More information about the U-Boot
mailing list