From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 8F23FA04DD; Thu, 19 Nov 2020 11:50:36 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 728B0F3E; Thu, 19 Nov 2020 11:50:34 +0100 (CET) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 345AC3B5; Thu, 19 Nov 2020 11:50:30 +0100 (CET) IronPort-SDR: Yu+qJiDlI+gN7TJj60Lrc6CF9GL5E4GEq2Pa+NoylXwvMnx+viZifEQYscR6ETczibrTOXJIBZ Ze7IYtOVjfBw== X-IronPort-AV: E=McAfee;i="6000,8403,9809"; a="189355808" X-IronPort-AV: E=Sophos;i="5.77,490,1596524400"; d="scan'208";a="189355808" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Nov 2020 02:50:28 -0800 IronPort-SDR: LW+f0PPCN/PK5EMRJHwMr8F3cjuPqSVNB4n1xQZJUQdkJSqVGf2nNN6w1Vux8Dd3F4Qz/7fhKg Jy0RooEN4wyg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,490,1596524400"; d="scan'208";a="368818906" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by orsmga007.jf.intel.com with ESMTP; 19 Nov 2020 02:50:28 -0800 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Thu, 19 Nov 2020 02:50:28 -0800 Received: from orsmsx603.amr.corp.intel.com (10.22.229.16) by ORSMSX610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Thu, 19 Nov 2020 02:50:27 -0800 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5 via Frontend Transport; Thu, 19 Nov 2020 02:50:27 -0800 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (104.47.70.100) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.1713.5; Thu, 19 Nov 2020 02:50:26 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DvPT3qSREiJ7yHsd8sQRLpgwxoKulKCi7xeiQcL26F7prCJ5q8RttfBMA5Wx5ddpAbpB1Khpd8dfTwJELHaswD+juyxgtS12kCGULvnzx8j1MtYCqBkUcG2NZuZZij6eFjrMNYFl8TYg2JLpDC2Cz12H/JxIzyss/xfdK6nnkIBq7HiOnRFwt63ikFM8yFsItA6a8yDvHak6tjG54RnXU/lGOZzJWQWQBcewmX7pmMhHzsIqRCof0fkLuYZ+GzgVd3Xf2KMGpxWmn48DaIKSjL2h8bt8YD1UsqT+3rExwBqFjiY8QFgpdWiAEnc5tqeZsvV7a5v1iWyUMsIdMKq+SQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=DvW9nEtb0cwaTPea3DYvQ24vKsJZiW1suQrWx+kwF9A=; b=QD0bqEsq6EdPyTxQbB6L5zwKdLom1jw4wHWOvMW79UVvKj8IlLksgh84KDUCtkVJd9LVsIlU/CtGt4bu7+B+iRKJfpHUJvn+Ou/aIQhOwKkrsxWWCEOAfZeS0/9lMPRGMxJF8uXGOimyYEWrSB2Rnz1MKcenSCrTncT8yqZ5DLik231zOGgNMHVF4vNAPQlN7TyRjDNNnzQH7Ki/3wTuUIz3RfrJXasWLNx+/sxaAcmSPMMwlIx54P8e5Hk0gqbPocQ4YqIgxQi9Vi4PR54o/9PgfnWyq446dKkkbhH3ijl4uLiFvkj1wC3BjUVAdEWvpFoiQFetT41HWgLm4ee61A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=DvW9nEtb0cwaTPea3DYvQ24vKsJZiW1suQrWx+kwF9A=; b=b5nQ+Xu5qcYzydaQ9ZKPEBBm1R6BtM1Eu9qDS6OoJu68KXOU8UaL/ivOdS444O7xKmmSZkfpZF/cabOJmWsHOsOKD/D4V4KJDKhF6y45E8UT5wMQnKXBxofIdY64/Yo/5nCdDqBBrFGgasbj1qRiyZ5GeZ7MPbwq25qBHlqbomA= Received: from BN8PR11MB3810.namprd11.prod.outlook.com (2603:10b6:408:8f::33) by BN6PR11MB1427.namprd11.prod.outlook.com (2603:10b6:405:8::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3564.28; Thu, 19 Nov 2020 10:50:24 +0000 Received: from BN8PR11MB3810.namprd11.prod.outlook.com ([fe80::ac18:cf38:350e:da78]) by BN8PR11MB3810.namprd11.prod.outlook.com ([fe80::ac18:cf38:350e:da78%3]) with mapi id 15.20.3589.022; Thu, 19 Nov 2020 10:50:24 +0000 From: "Daly, Lee" To: wangyunjian , "dev@dpdk.org" CC: "jerry.lilijun@huawei.com" , "xudingke@huawei.com" , "stable@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH] compress/isal: check allocation in qp setup Thread-Index: AQHWsQyQugi19uAaI0uwFDaRPE2jGanPWRnQ Date: Thu, 19 Nov 2020 10:50:24 +0000 Message-ID: References: <4593dfcc7f70361a80cc1ea3b129f29074588e3d.1604317264.git.wangyunjian@huawei.com> In-Reply-To: <4593dfcc7f70361a80cc1ea3b129f29074588e3d.1604317264.git.wangyunjian@huawei.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-version: 11.5.1.3 dlp-product: dlpe-windows dlp-reaction: no-action authentication-results: huawei.com; dkim=none (message not signed) header.d=none;huawei.com; dmarc=none action=none header.from=intel.com; x-originating-ip: [37.228.238.14] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: a9075021-e053-493d-ce04-08d88c78eb2c x-ms-traffictypediagnostic: BN6PR11MB1427: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:3044; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: i72bypLJnDnMLFHaJtWQhwyz1Rrp+/rbDKBofiERvBB56x5oqF0vBuuJViDfbxZH5Gtddco3g2nHRPP5GvymxO8MfIKfH6BQzBz/5pWmegh2VB2J6rYd9h8lu+4/7bLxiz7fBhRY4fJVpw4Yr6ATy1wxVmBGgxGRoEycC925RRRckC3AmtuZ9unMQP25V53H908K4+ruIhKBHeJVqatvRzrfb2cHSetMoHv1sfiOW0HJCc1d14YGjPt/Q16Jp4WwIOdPyMnX6TEXFAqKO/kPnjLqok9YmKz+fr5Q3L3T0+mk6MO+qNbFaqQhRWfErnrXEvSulcR6vIYooFAWBe8OLw== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BN8PR11MB3810.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(396003)(376002)(346002)(366004)(136003)(39860400002)(9686003)(478600001)(53546011)(110136005)(4744005)(64756008)(5660300002)(71200400001)(66476007)(55016002)(6506007)(8676002)(8936002)(33656002)(7696005)(66556008)(26005)(186003)(316002)(86362001)(76116006)(66446008)(4326008)(52536014)(2906002)(54906003)(66946007); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: HU4cqXfGD9Was0JBODFUy5evx7M7h8qSNIVc40tFoHXaKNm3WfKMK2vqQbXWGfjKyZ7UKHp4VAGNGia2nPQD4ATAdlJnoA0RJLT8yn9haQ1oCmAkUl7MYEFu8b2ESbTHkRPN4poizPdgpZw0kNUjD0ZMrNpSdfnnYVxV4DO1AYGMjJISXbrvWObHBADRYQwFxceuOJKNhdRAdnoUp48HWDoztj+/72UlNG6DUhKOXhaRqpKk6q5Zeb1hVCnNLyQTYgacDVOAHAEEBBAcS7SQxzFiHSGQ9klCLfHXU6GXzA7eQvrCTg/ynw7+tImBshUOVieVhbWJ0wlg39LXRNDzDmui2nr5Re/9JrLbZoTRVGc4l0Y96gNuFT1M8mu2K+AdR6Vy6tthvCI8+XuCoD/ttWoyP5xZPeuiGr6MIXzvxqHFxNVKugsehtmC31In8KawKEVPVZRdcooZpu5BkNu8zNDwXStfLnAsKSCvebZPhwJjlgihaX7dmAz5cvBEanhIzQB9xjCkaLyziEG0KWbVJ7vkFqcT4zJt7fFxZz2TQ+iHueqZDX3x4hsyJ04a0tCLpRWVwRQBLNJe7wC6xfa0aqZdqemfKjJh6R5Keq710dkO8GuIvwA746KZFT1Z1hkTQI/8StU5GOlk65RAyeoY2Q== x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BN8PR11MB3810.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: a9075021-e053-493d-ce04-08d88c78eb2c X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Nov 2020 10:50:24.2011 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 8oXsEyvJl6VTLhYThcKglAyPGXYMRB8CgelDTrhWwKTM/SSDAOKhj6CfQDyHAWN9qHL90slGpPqKAveWP1Aidg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR11MB1427 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH] compress/isal: check allocation in qp setup X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" > From: wangyunjian > Sent: Monday, November 2, 2020 11:36 AM > To: dev@dpdk.org > Cc: Daly, Lee ; jerry.lilijun@huawei.com; > xudingke@huawei.com; Yunjian Wang ; > stable@dpdk.org > Subject: [dpdk-dev] [PATCH] compress/isal: check allocation in qp setup >=20 > From: Yunjian Wang >=20 > The function rte_zmalloc() could return NULL, the return value need to be > checked. >=20 > Fixes: dc49e6aa4879 ("compress/isal: add ISA-L compression functionality"= ) > Fixes: 7bf4f0630af6 ("compress/isal: add ISA-L decomp functionality") > Cc: stable@dpdk.org >=20 > Signed-off-by: Yunjian Wang > --- > drivers/compress/isal/isal_compress_pmd_ops.c | 20 ++++++++++++++++- > -- Thanks for patch. Acked-by: Lee Daly