OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a3539c
)
be2net: Fix memory leak in be_cmd_get_profile_config()
author
Petr Oros
<poros@redhat.com>
Wed, 5 Sep 2018 12:37:45 +0000
(14:37 +0200)
committer
David S. Miller
<davem@davemloft.net>
Wed, 5 Sep 2018 15:07:55 +0000
(08:07 -0700)
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>
drivers/net/ethernet/emulex/benet/be_cmds.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/emulex/benet/be_cmds.c
b/drivers/net/ethernet/emulex/benet/be_cmds.c
index
ff92ab1
..
1e9d882
100644
(file)
--- a/
drivers/net/ethernet/emulex/benet/be_cmds.c
+++ b/
drivers/net/ethernet/emulex/benet/be_cmds.c
@@
-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,