1
0
Fork 0

be2net: Fix memory leak in be_cmd_get_profile_config()

[ Upstream commit 9d7f19dc46 ]

DMA allocated memory is lost in be_cmd_get_profile_config() when we
call it with non-NULL port_res parameter.

Signed-off-by: Petr Oros <poros@redhat.com>
Reviewed-by: Ivan Vecera <ivecera@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
pull/10/head
Petr Oros 2018-09-05 14:37:45 +02:00 committed by Greg Kroah-Hartman
parent 1244bbb3e9
commit 799d8f1f0d
1 changed files with 1 additions and 1 deletions

View File

@ -4500,7 +4500,7 @@ int be_cmd_get_profile_config(struct be_adapter *adapter,
port_res->max_vfs += le16_to_cpu(pcie->num_vfs);
}
}
return status;
goto err;
}
pcie = be_get_pcie_desc(resp->func_param, desc_count,