commit | b24b1e4b1d6776ca12a57eff77956bce77b2e56f | [log] [tgz] |
---|---|---|
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | Wed Mar 07 03:39:04 2018 +0100 |
committer | Joe Hershberger <joe.hershberger@ni.com> | Thu Mar 22 15:05:28 2018 -0500 |
tree | 7d84064fa5455987960adc5ce9714f84d519fd8d | |
parent | dfa1a74045c930ec3935f748b0969f9d76352e13 [diff] |
net: mvpp2x: add check after calloc 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@gmx.de> Acked-by: Joe Hershberger <joe.hershberger@ni.com>