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 EF3C5A0542 for ; Thu, 13 Feb 2020 15:01:27 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E16BB1BFD1; Thu, 13 Feb 2020 15:01:27 +0100 (CET) Received: from us-smtp-delivery-1.mimecast.com (us-smtp-2.mimecast.com [205.139.110.61]) by dpdk.org (Postfix) with ESMTP id 17F5A1BFD1 for ; Thu, 13 Feb 2020 15:01:27 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1581602486; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=EZZS/Fug4uh5JtMcrbsWzOYD6FYpXNO5wMVc2uL1668=; b=X5u4CokLjBo2JaqylCdY8HE/aDaPTNLbpnwBLHkYgjri6akJx2NGqEyg6mk8Axa0p63FrA nzQzX1ZpxcntO6fuaiZdC9BxVWz7n50wO6AVlGCjRZzDxfzN+hE8Rx39av3X/c2bWkFd66 qKayvC+GBoSJPtPG8L7jF4svMznfr7o= Received: from mail-vk1-f197.google.com (mail-vk1-f197.google.com [209.85.221.197]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-388-eB_CnIqPOJy7xvZX-v8G8A-1; Thu, 13 Feb 2020 09:01:24 -0500 Received: by mail-vk1-f197.google.com with SMTP id x4so1970061vkb.11 for ; Thu, 13 Feb 2020 06:01:24 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=b70Rml4Avs9GTgx7XS97pElnwfL3Q/H75583Wull6j4=; b=VIoHVMD0h/HqbpKRWdf1/MrtJcljhM0efZFtJGvWDimqYjdoN1F3HJrGMzrzB+WLjA OkRJuMvHzTWRQmtUwImIjn+d8c5rsVWYzfU1ZaJMKRceb370KEwXz5MU+6Qej/uCj8gz f65rxWwpYi5ncfuELzNftO4P5fydnkKoOHQTs/7pvx6y8wT5BXgn0ZV9JnMFFhwGHu72 REbdixKTqB6Eul9MeFi8l/4FNF46KgeQE+rnmBGz/fyyuzjocXJzXUARC6yjtJPMedbS lqmSCyvuJTzL8jqmK/abapG/DmXZdgBA6nKwjEwTd8UzvHe7Ui+Guen87OElRzCjG+c9 g2hA== X-Gm-Message-State: APjAAAVIEkPGvfoL2tfthvR6ROzhHQQ5tf3gvYR2KbE4X6/q7laiPhaa 2kDymtXq9GoCNIFc+I+5AP+6QAdokQIvGRhBYF54aZwOcL1LyDyruX/y4M3oCCM0bhkdwh92lrA jqcDMM2vY/StCfa/sLdMrttA= X-Received: by 2002:a67:e342:: with SMTP id s2mr2063932vsm.198.1581602483685; Thu, 13 Feb 2020 06:01:23 -0800 (PST) X-Google-Smtp-Source: APXvYqxp0RhylNcxQBvEkigHS7kh8fspm2Q3UDZedghhrc6pDLFvJWrHw+ZCenhN1GaISbei+IYCLiijIEaHHlbY0pE= X-Received: by 2002:a67:e342:: with SMTP id s2mr2063910vsm.198.1581602483339; Thu, 13 Feb 2020 06:01:23 -0800 (PST) MIME-Version: 1.0 References: <20200204160006.64720-1-ciara.power@intel.com> In-Reply-To: <20200204160006.64720-1-ciara.power@intel.com> From: David Marchand Date: Thu, 13 Feb 2020 15:01:12 +0100 Message-ID: To: Ciara Power Cc: Bruce Richardson , dev , dpdk stable X-MC-Unique: eB_CnIqPOJy7xvZX-v8G8A-1 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [dpdk-stable] [dpdk-dev] [PATCH] examples/ioat: fix failure check for ioat dequeue X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 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 Sender: "stable" On Tue, Feb 4, 2020 at 5:10 PM Ciara Power wrote: > > The nb_dq return value from the ioat dequeue is negative in failure > cases, however the variable was an unsigned int, causing the condition > where nb_dq <=3D 0 to never be true. This is now cast to a signed int, > which will successfully reflect the -1 value to be used in this > conditional check. > > Coverity issue: 350342 > Coverity issue: 350349 > Fixes: 92c981637ffc ("examples/ioat: handle failure case for ioat dequeue= ") > Cc: stable@dpdk.org > > Signed-off-by: Ciara Power Acked-by: Bruce Richardson Applied, thanks. -- David Marchand