commit | 47d20212aa1c64f52aba0c5409d03c22bf25cd66 | [log] [tgz] |
---|---|---|
author | Gustavo A. R. Silva <gustavo@embeddedor.com> | Tue Oct 16 19:37:35 2018 +0200 |
committer | David S. Miller <davem@davemloft.net> | Wed Oct 17 22:08:55 2018 -0700 |
tree | 0e58e9ab8b78310f52274ad50164542e543c6271 | |
parent | e519869af368fe1da218b43bdb3a553d66f4fcd0 [diff] |
net: phy: mscc: fix memory leak in vsc8574_config_pre_init In case memory resources for *fw* were successfully allocated, release them before return. Addresses-Coverity-ID: 1473968 ("Resource leak") Fixes: 00d70d8e0e78 ("net: phy: mscc: add support for VSC8574 PHY") Reviewed-by: Quentin Schulz <quentin.schulz@bootlin.com> Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com> Signed-off-by: David S. Miller <davem@davemloft.net>