[dpdk-dev] [PATCH v2] event: fix check in ring init() in event ring code
Thomas Monjalon
thomas at monjalon.net
Sun Aug 5 14:52:56 CEST 2018
02/08/2018 16:43, Harry van Haaren:
> This commit fixes a bug in a 32-bit environment where the
> generic ring_init() would fail, but given the interaction
> with memzones the next iteration of the event_ring_autotest
> would actually *pass* because the ring in question would
> exist already an be looked-up.
>
> This commit rightly error checks the result of ring_init(),
> and calls rte_free() on the memory as required.
>
> Fixes: dc39e2f359b5 ("eventdev: add ring structure for events")
> Cc: bruce.richardson at intel.com
> Cc: stable at dpdk.org
>
> Signed-off-by: Harry van Haaren <harry.van.haaren at intel.com>
> Acked-by: Jerin Jacob <jerin.jacob at caviumnetworks.com>
>
> ---
>
> v2:
> - Removed _ from headline for check git log (Jerin)
This is not the spirit of this check.
You are expected to not use function names at all,
in order to provide a title readable by someone who does not know
the function or structure names of this area.
In this case, it can be:
event: fix ring init failure handling
> - Added memzone free (good catch, thanks Jerin)
> - Return NULL instead of 0 (Jerin)
> - Added Jerin's Ack
>
> Cc: thomas at monjalon.net
> Cc: jerin.jacob at caviumnetworks.com
>
> Please consider this for RC3, as it fixes the unit tests
> on 32-bit systems.
Applied, thanks
More information about the dev
mailing list