]> git.baikalelectronics.ru Git - uboot.git/commit
drivers: net: ldpaa_eth: fix resource leak
authorPankaj Bansal <pankaj.bansal@nxp.com>
Fri, 8 Feb 2019 08:46:11 +0000 (08:46 +0000)
committerJoe Hershberger <joe.hershberger@ni.com>
Wed, 8 May 2019 22:26:59 +0000 (17:26 -0500)
commit761a7ed10827a9fad1a817a2e7b71b0aa13a305a
tree513f0a8f969838f41232c85d588d15c0c2a5a0b5
parentfdd081ebc827d200d26cf530d0917e0a8f9ebc8c
drivers: net: ldpaa_eth: fix resource leak

if an error occurs in ldpaa_eth_init, need to free all resources
before returning the error.

Threfore, free net_dev before returning from ldpaa_eth_init.

Signed-off-by: Pankaj Bansal <pankaj.bansal@nxp.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/ldpaa_eth/ldpaa_eth.c