]> git.dujemihanovic.xyz Git - u-boot.git/commit
net: core: avoid possible NULL pointer dereference
authorxypron.glpk@gmx.de <xypron.glpk@gmx.de>
Tue, 16 May 2017 03:07:01 +0000 (05:07 +0200)
committerJoe Hershberger <joe.hershberger@ni.com>
Fri, 2 Jun 2017 19:44:19 +0000 (14:44 -0500)
commitc08248d601e939ababe1642d11be63d0c14c7d1a
treed7a9a4232cc9720b7f51129a10632e8e5c90d400
parent96d1d84c79b63e5882f09be451227f7145ea8599
net: core: avoid possible NULL pointer dereference

Checking if dev is NULL after dereferencing it does not make sense.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
net/eth-uclass.c