aboutsummaryrefslogtreecommitdiffstats
path: root/src/svm
diff options
context:
space:
mode:
authorNathan Skrzypczak <nathan.skrzypczak@gmail.com>2019-09-13 17:14:57 +0200
committerFlorin Coras <florin.coras@gmail.com>2019-09-20 20:01:02 +0000
commit1afa7afffad6e296a97556aa4c9482f4cd544074 (patch)
tree8336ca310de06dcf305d336f2ad011d6221b226b /src/svm
parentafef8bf22369d10ab8107a63b1e3529ed7dd6c8d (diff)
session: fix msg freeing on error
Type: fix Change-Id: I0807f84737d5e98e69e9ed27a1de6813b2ddd138 Signed-off-by: Nathan Skrzypczak <nathan.skrzypczak@gmail.com>
Diffstat (limited to 'src/svm')
-rw-r--r--src/svm/message_queue.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/svm/message_queue.c b/src/svm/message_queue.c
index a40c4a46a39..6113450e7cb 100644
--- a/src/svm/message_queue.c
+++ b/src/svm/message_queue.c
@@ -127,11 +127,6 @@ svm_msg_q_lock_and_alloc_msg_w_ring (svm_msg_q_t * mq, u32 ring_index,
return -2;
}
*msg = svm_msg_q_alloc_msg_w_ring (mq, ring_index);
- if (PREDICT_FALSE (svm_msg_q_msg_is_invalid (msg)))
- {
- svm_msg_q_unlock (mq);
- return -2;
- }
}
else
{