Thread (9 messages) 9 messages, 3 authors, 2017-04-03

Re: [PATCH v3 1/3] mempool: fix segfault when shared mempool handler not linked

From: Olivier Matz <hidden>
Date: 2017-03-31 13:49:26

On Fri, 31 Mar 2017 11:05:35 +0530, Shreyansh Jain [off-list ref] wrote:
Fixes: 449c49b93a6b ("mempool: support handler operations")

In case the stack or ring mempool handler are compiled as shared
library and not linked in with test binary, segfault is reported.
This is because return value of rte_mempool_set_ops_byname is not
being checked in rte_mempool_ops_alloc.

This patch handles error returned from rte_mempool_set_ops_byname
when a mempool is not found.

Signed-off-by: Shreyansh Jain <redacted>
Acked-by: Olivier Matz <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help