From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kevin Traynor Subject: Re: [PATCH v7 01/11] crypto/dpaa: replace rte_panic instances in crypto/dpaa driver Date: Fri, 27 Apr 2018 11:08:18 +0100 Message-ID: <3ece9b04-46d9-bf46-2e01-45be76af5047@redhat.com> References: <1524608213-2080-1-git-send-email-arnon@qwilt.com> <1524608213-2080-2-git-send-email-arnon@qwilt.com> <07170182-8293-8347-b0ff-9a77885b637f@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: Thomas Monjalon , "Burakov, Anatoly" , "Lu, Wenzhuo" , "Doherty, Declan" , jerin.jacob@caviumnetworks.com, Bruce Richardson , "Yigit, Ferruh" , dev@dpdk.org To: Arnon Warshavsky Return-path: Received: from mx1.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by dpdk.org (Postfix) with ESMTP id 74DD87CA3 for ; Fri, 27 Apr 2018 12:08:23 +0200 (CEST) In-Reply-To: Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 04/26/2018 10:28 PM, Arnon Warshavsky wrote: > > > - if (cryptodev->data->dev_private == NULL) > > - rte_panic("Cannot allocate memzone for private " > > - "device data"); > > + if (cryptodev->data->dev_private == NULL) { > > + DPAA_SEC_ERR("%s() Cannot allocate memzone for private device data", > > + __func__); > > + return -ENOMEM; > > I'm not familiar with the code but there was a successful allocate > already, so it seems you should jump to the cleanup section at the end > of the function before returning. > > Hi Kevin, > The purpose of this patchset is not to offer a recoverable alternative > for panic, > rather allow the process to abort in an orderly manner. > It does not cover in this version all the panic instances on the init > sequence. > Other than in places where it seemed straight forward I tend not to > perform in this patchset > partial resource release where panic was before. > Ok, I understand the intention better now. > Thanks > /Arnon > > >