diff options
author | Wang Hai <[email protected]> | 2020-07-16 11:50:38 +0800 |
---|---|---|
committer | David S. Miller <[email protected]> | 2020-07-17 12:44:42 -0700 |
commit | bca9749b1aa23d964d3ab930938af66dbf887f15 (patch) | |
tree | e46f2b7ae12dc814ee09caad0ca83cdc1653cc45 /lib/mpi/mpi-bit.c | |
parent | cebb69754f37d68e1355a5e726fdac317bcda302 (diff) |
net: smc91x: Fix possible memory leak in smc_drv_probe()
If try_toggle_control_gpio() failed in smc_drv_probe(), free_netdev(ndev)
should be called to free the ndev created earlier. Otherwise, a memleak
will occur.
Fixes: 7d2911c43815 ("net: smc91x: Fix gpios for device tree based booting")
Reported-by: Hulk Robot <[email protected]>
Signed-off-by: Wang Hai <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-bit.c')
0 files changed, 0 insertions, 0 deletions