From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id A0F5641D73 for ; Thu, 2 Mar 2023 12:00:56 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9DC6F4161A; Thu, 2 Mar 2023 12:00:56 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 837D740E09; Thu, 2 Mar 2023 12:00:54 +0100 (CET) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 322AfOXN020106; Thu, 2 Mar 2023 02:58:40 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=r5jd8Seie2N+FvhlaponihLh3/8BKo9PB5mLDJcC+ow=; b=kBhWEgfmRGfX8LxIWhYk9sA/qEWA8MBPvCCHW3qiUOWT5aBGJLb+UgSadUbE1AlTk9nC FEsUsXoJ0IJdLrrVjmOlh/gLLGIkR4UPxFqLGB0FeLTMYagiZnIJYWbATpUKaKGX+Y7J yPXjSsqRc40ceTQXwwSPOooykPUcaICTub+Z+SZSADkdksf2Qo7tw/5XH7UGUyje+77z sdzp2KjM1UjP1PkBkVV5/hUBiCc/ryLp424hGCVdTAqQxiDAHAjGhIHaxxpHms9fEwz1 qoZ2pmCaFALF0G2SsXd619giLeBNgJqOhaSQoOOoR7xZTG9wj77+WrUAmOGQk1GI/VG3 +Q== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3p1wr9rqs5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Thu, 02 Mar 2023 02:58:40 -0800 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Thu, 2 Mar 2023 02:58:38 -0800 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.42 via Frontend Transport; Thu, 2 Mar 2023 02:58:38 -0800 Received: from cavium-DT10.. (unknown [10.28.34.39]) by maili.marvell.com (Postfix) with ESMTP id C80AC5B6928; Thu, 2 Mar 2023 02:58:35 -0800 (PST) From: Volodymyr Fialko To: , Pavan Nikhilesh , "Shijith Thotton" , Ray Kinsella CC: , , Volodymyr Fialko , Subject: [PATCH] event/cnxk: fix SSO return code at fini Date: Thu, 2 Mar 2023 11:58:32 +0100 Message-ID: <20230302105832.3955684-1-vfialko@marvell.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: C7J3NxBD8MftGUdaKxtu4mOHnb7rCbnH X-Proofpoint-GUID: C7J3NxBD8MftGUdaKxtu4mOHnb7rCbnH X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-03-02_06,2023-03-02_02,2023-02-09_01 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org dev_fini() can return EAGAIN in case if LF is active(used by other devices). Ignoring return code leads to early free of resources that are still in use. Fixes: 8558dcaa05b8 ("event/cnxk: add build infra and device setup") Cc: stable@dpdk.org Signed-off-by: Volodymyr Fialko --- drivers/event/cnxk/cnxk_eventdev.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/event/cnxk/cnxk_eventdev.c b/drivers/event/cnxk/cnxk_eventdev.c index 9815e84c24..6aecccb45d 100644 --- a/drivers/event/cnxk/cnxk_eventdev.c +++ b/drivers/event/cnxk/cnxk_eventdev.c @@ -670,9 +670,8 @@ cnxk_sso_fini(struct rte_eventdev *event_dev) cnxk_tim_fini(); roc_sso_rsrc_fini(&dev->sso); - roc_sso_dev_fini(&dev->sso); - return 0; + return roc_sso_dev_fini(&dev->sso); } int -- 2.34.1