It doesn't affect the allocation size, but the number of elements
should go before the size of these elements.
Fixes: 74daa0607c7f ("ovn-northd: Introduce parallel lflow build")
Signed-off-by: Ilya Maximets <[email protected]>
---
northd/northd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/northd/northd.c b/northd/northd.c
index 0a749931e..ea95f6a5c 100644
--- a/northd/northd.c
+++ b/northd/northd.c
@@ -15832,7 +15832,7 @@ build_lswitch_and_lrouter_flows(const struct
ovn_datapaths *ls_datapaths,
struct lswitch_flow_build_info *lsiv;
int index;
- lsiv = xcalloc(sizeof(*lsiv), build_lflows_pool->size);
+ lsiv = xcalloc(build_lflows_pool->size, sizeof *lsiv);
/* Set up "work chunks" for each thread to work on. */
--
2.40.1
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev