diff options
author | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2018-10-16 19:37:35 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-10-17 22:08:55 -0700 |
commit | 47d20212aa1c64f52aba0c5409d03c22bf25cd66 (patch) | |
tree | 0e58e9ab8b78310f52274ad50164542e543c6271 /lib/irq_poll.c | |
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>
Diffstat (limited to 'lib/irq_poll.c')
0 files changed, 0 insertions, 0 deletions