Commit bfb8799a authored by Petr Oros's avatar Petr Oros Committed by Greg Kroah-Hartman

be2net: Fix memory leak in be_cmd_get_profile_config()

[ Upstream commit 9d7f19dc ]

DMA allocated memory is lost in be_cmd_get_profile_config() when we
call it with non-NULL port_res parameter.
Signed-off-by: default avatarPetr Oros <poros@redhat.com>
Reviewed-by: default avatarIvan Vecera <ivecera@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 70915e25
...@@ -4500,7 +4500,7 @@ int be_cmd_get_profile_config(struct be_adapter *adapter, ...@@ -4500,7 +4500,7 @@ int be_cmd_get_profile_config(struct be_adapter *adapter,
port_res->max_vfs += le16_to_cpu(pcie->num_vfs); port_res->max_vfs += le16_to_cpu(pcie->num_vfs);
} }
} }
return status; goto err;
} }
pcie = be_get_pcie_desc(resp->func_param, desc_count, pcie = be_get_pcie_desc(resp->func_param, desc_count,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment