From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0057.outbound.protection.outlook.com [104.47.2.57]) by dpdk.org (Postfix) with ESMTP id AF03F1B42A; Fri, 2 Nov 2018 12:42:13 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=mwAyG27+Hfv8Ghte1+1bKu/pGDcGF/23E5q0PNlQwQc=; b=AhLBhwXRBvqXJHfkN5NXQKGHMNhx71xu2KuzKNX2lA+KH2pULGI5BjwkjRmLwYdVgjPX9mhySIuQyMcs5N6jPW1uD5lyja/r5z+EFy0/iHPPVh9L8zc92jIytXQR1vQMjda/PCSJf6GzlP2nKZuQXLLzdODdxMeM15DHPTK3h/s= Received: from VI1PR04MB4893.eurprd04.prod.outlook.com (20.177.49.154) by VI1PR04MB1519.eurprd04.prod.outlook.com (10.163.167.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1294.20; Fri, 2 Nov 2018 11:42:11 +0000 Received: from VI1PR04MB4893.eurprd04.prod.outlook.com ([fe80::70c8:7997:4cf:743f]) by VI1PR04MB4893.eurprd04.prod.outlook.com ([fe80::70c8:7997:4cf:743f%2]) with mapi id 15.20.1294.024; Fri, 2 Nov 2018 11:42:11 +0000 From: Akhil Goyal To: "Verma, Shally" , Fiona Trahe , "dev@dpdk.org" CC: "thomas@monjalon.net" , "tomaszx.jozwiak@intel.com" , "sabyasg@hpe.com" , "stable@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH v2] lib/compressdev: Fix logic error on op allocation Thread-Index: AQHUbY4UcaofQ7HRr0iVotwy8xKvnqU31qWAgASQZQA= Date: Fri, 2 Nov 2018 11:42:11 +0000 Message-ID: <0b6fb4ce-8bf6-0c99-e390-63b2331891d9@nxp.com> References: <1540599469-21696-1-git-send-email-fiona.trahe@intel.com> <1540600987-8101-1-git-send-email-fiona.trahe@intel.com> In-Reply-To: Accept-Language: en-IN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: BM1PR0101CA0050.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:19::12) To VI1PR04MB4893.eurprd04.prod.outlook.com (2603:10a6:803:56::26) authentication-results: spf=none (sender IP is ) smtp.mailfrom=akhil.goyal@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [14.143.30.134] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; VI1PR04MB1519; 6:ahrkV1GC+Kgic7pFMAq0RiDCybxAGY/PWWRe+qdhtWEr4Rj4QkWGSTHn4vDY0ZI3RyQQH48YZ4FVnFUEQG64cFshAAsMT7gyIc3WYFyTmbHqRhCUgm6airW2HbsBP0U61xLS/o1Qduxdsk/CjcXYVOvbOLa/rAnc1Cd+ISyxh336P+IEcM4UJ7yBzgbob5pRwRMyLmTSmvy3dlsGt9AE//gX6V3Mp9CamILeA7hqQ/w9HQOBhfoksqUO5M6L5xZPMounOFQcJH+zeUFlwhWaTOaCCWV2h/I6vPyZaD+EM8Iio4eTGS4zqV+9AyCUs/GMChUpBuJtn6ZdBvMl4OsK/UhzXp3/EvtjkJb+quHD/NEWwSTxEIJpnRtpi2GH3djypVErl2ouMK/tSsl+PIXNWYIvVuiflqzXmc7tVog8jLYUjrWpXdoB1cfzuqbz5kC5PjEvPCAk7ROVZCW4fqIT5Q==; 5:hdqU5mOKKxlOgUq+uynHcpH6AW5P5xLDarS0P/21NiLgVq41x1neEgQXYi0wH1DhemjBRDDH8IZGYONYCZqceTYA5jPItaA+FELnPYAIgdRZcXqp38V6D94zaEuQ5/4mNc+mcz8TnuAQpD3bS1/18Tv3bObKShrvmbcyShrK0Kc=; 7:Kw5EBelk2YgYUB259JX4GdYSZfhS1mlfyqduHDnFsIV0yxc1WzWpQwrNQHM/3aFKEp2Mqladtbr6xeUZesYTYi9nBmW+anW93a9p9vxhYmNL1sGIXwXFUGTDdOC18uQFG04N857RxPwZqBk3hNApKg== x-ms-office365-filtering-correlation-id: ee5d571a-86f9-4154-a429-08d640b83a03 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:VI1PR04MB1519; x-ms-traffictypediagnostic: VI1PR04MB1519: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(185117386973197)(228905959029699)(227479698468861)(222181515654134); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(10201501046)(3002001)(3231382)(944501410)(52105095)(93006095)(93001095)(6055026)(148016)(149066)(150057)(6041310)(20161123562045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123564045)(201708071742011)(7699051)(76991095); SRVR:VI1PR04MB1519; BCL:0; PCL:0; RULEID:; SRVR:VI1PR04MB1519; x-forefront-prvs: 08444C7C87 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(396003)(346002)(39860400002)(366004)(136003)(376002)(13464003)(189003)(199004)(76176011)(446003)(52116002)(4326008)(31686004)(102836004)(186003)(256004)(7736002)(44832011)(31696002)(106356001)(105586002)(86362001)(78486014)(99286004)(11346002)(26005)(476003)(2616005)(53546011)(55236004)(478600001)(486006)(386003)(6506007)(66066001)(36756003)(14454004)(68736007)(8676002)(81156014)(81166006)(2900100001)(8936002)(97736004)(25786009)(71190400001)(71200400001)(6116002)(3846002)(229853002)(2906002)(6486002)(6512007)(5660300001)(305945005)(6246003)(53936002)(54906003)(6436002)(316002)(110136005)(2501003); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR04MB1519; H:VI1PR04MB4893.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: u9XDhdRGhhNkVd2ObAFWOacTO1KB2C8E11fCHw8pgOCK6gVqcpiAMW6lLCHSth5KhLLfJPM62XScVQgFJ3eY6qBDXrh2+8kICvbQnlQsYXMpcM8wpBn9LQ407Mm0v7/dSO1YlR+bQgq8cPEECHjGwjstdiYVs0VARar3RwA2ywmfLc4FObGDQW7VICHuCsGj/TJM6o90YPw+uBKhR5lrHqsMBYtP85mOCa8GbgeWrGmnYAUiK9JCW6gs6LItfOIYZgnlqJOoDobQEKgS/vDrngtg+OnjWaCTI3HVJsBj5sXMFjyeDTtvAAmEPUT/3zrrIVywjpVYUoCB1c/+kYTNE0aBuUEnv5bUlrVGamWm/RM= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: ee5d571a-86f9-4154-a429-08d640b83a03 X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Nov 2018 11:42:11.4843 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB1519 Subject: Re: [dpdk-dev] [PATCH v2] lib/compressdev: Fix logic error on op allocation 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: , X-List-Received-Date: Fri, 02 Nov 2018 11:42:13 -0000 DQoNCk9uIDEwLzMwLzIwMTggNzozMCBQTSwgVmVybWEsIFNoYWxseSB3cm90ZToNCj4NCj4+IC0t LS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