Hi Maxim,

I've spotted this patch which went in to ODP-DPDK instead of mainline ODP. I think it would be better to push it there as well. You can add my

Reviewed-by: Zoltan Kiss <[email protected]>


-------- Forwarded Message --------
Subject: [lng-odp-dpdk] [PATCH 5/5] dpdk: do not segfault in odp_queue_destroy()
Date: Mon, 18 May 2015 13:24:32 +0300
From: Maxim Uvarov <[email protected]>
To: [email protected]

Signed-off-by: Maxim Uvarov <[email protected]>
---
 platform/linux-generic/odp_queue.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/platform/linux-generic/odp_queue.c b/platform/linux-generic/odp_queue.c
index 4a0465b..63744af 100644
--- a/platform/linux-generic/odp_queue.c
+++ b/platform/linux-generic/odp_queue.c
@@ -247,6 +247,10 @@ void queue_destroy_finalize(queue_entry_t *queue)
 int odp_queue_destroy(odp_queue_t handle)
 {
        queue_entry_t *queue;
+
+       if (handle == ODP_QUEUE_INVALID)
+               return -1;
+
        queue = queue_to_qentry(handle);

        LOCK(&queue->s.lock);
--
1.9.1

_______________________________________________
lng-odp-dpdk mailing list
[email protected]
https://lists.linaro.org/mailman/listinfo/lng-odp-dpdk


_______________________________________________
lng-odp mailing list
[email protected]
https://lists.linaro.org/mailman/listinfo/lng-odp

Reply via email to