summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorChris Leech <cleech@redhat.com>2019-10-31 13:54:29 -0700
committerChris Leech <cleech@redhat.com>2019-10-31 15:48:08 -0700
commit065b4f609d2f91e45ce4787604214f386c1deab7 (patch)
treeab11d75e43cb0fca1110e9e1e0eb7bcf34579e4f /utils
parenta22defdd22b2efddc59f5e29f18b632b0ea560de (diff)
downloadopen-iscsi-065b4f609d2f91e45ce4787604214f386c1deab7.tar.gz
iscsistart -b probably never worked with PPC OF parsing?
Picked up by Coverity as a resource leak on the allocated context, callers are not expected allocation here (and the function would need to take a **boot_context if they were)
Diffstat (limited to 'utils')
-rw-r--r--utils/fwparam_ibft/fwparam_ppc.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/utils/fwparam_ibft/fwparam_ppc.c b/utils/fwparam_ibft/fwparam_ppc.c
index 71fa98d..52a5c50 100644
--- a/utils/fwparam_ibft/fwparam_ppc.c
+++ b/utils/fwparam_ibft/fwparam_ppc.c
@@ -483,7 +483,6 @@ int fwparam_ppc_boot_info(struct boot_context *context)
if (!error)
error = locate_mac(devtree, ofwdevs[0]);
if (!error) {
- context = calloc(1, sizeof(*context));
if (!context)
error = ISCSI_ERR_NOMEM;
else