git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
net/mlx5: fix buffer allocation check in rule cleanup
[dpdk.git]
/
drivers
/
net
/
mlx5
/
mlx5_flow_tcf.c
diff --git
a/drivers/net/mlx5/mlx5_flow_tcf.c
b/drivers/net/mlx5/mlx5_flow_tcf.c
index
fb817b2
..
ba0674a
100644
(file)
--- a/
drivers/net/mlx5/mlx5_flow_tcf.c
+++ b/
drivers/net/mlx5/mlx5_flow_tcf.c
@@
-4226,7
+4226,7
@@
flow_tcf_collect_vxlan_cb(const struct nlmsghdr *nlh, void *arg)
vxindex = ifm->ifi_index;
cmd = flow_tcf_alloc_nlcmd(ctx, MNL_ALIGN(sizeof(struct nlmsghdr)) +
MNL_ALIGN(sizeof(struct ifinfomsg)));
- if (!
nlh
) {
+ if (!
cmd
) {
rte_errno = ENOMEM;
return -rte_errno;
}