From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v2] event: fix check in ring init() in event ring code Date: Sun, 05 Aug 2018 14:52:56 +0200 Message-ID: <2872510.F3tLCBEot3@xps> References: <1533198964-30218-1-git-send-email-harry.van.haaren@intel.com> <1533221009-99302-1-git-send-email-harry.van.haaren@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, bruce.richardson@intel.com, stable@dpdk.org, jerin.jacob@caviumnetworks.com To: Harry van Haaren Return-path: In-Reply-To: <1533221009-99302-1-git-send-email-harry.van.haaren@intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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@intel.com > Cc: stable@dpdk.org > > Signed-off-by: Harry van Haaren > Acked-by: Jerin Jacob > > --- > > 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@monjalon.net > Cc: jerin.jacob@caviumnetworks.com > > Please consider this for RC3, as it fixes the unit tests > on 32-bit systems. Applied, thanks