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 E916FA04B5 for ; Thu, 29 Oct 2020 17:09:46 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C6C0B5AB2; Thu, 29 Oct 2020 17:09:45 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by dpdk.org (Postfix) with ESMTP id 513C35AB2 for ; Thu, 29 Oct 2020 17:09:44 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1603987782; 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: in-reply-to:in-reply-to:references:references; bh=mMJP56/uizXzSYsg98spfC7cZWTqeu/RIXJulp4EZso=; b=eJPbcpl7oOE7rObW+Ys/FMQNWlN8JENR8TCUW2N3jwxFtgv5HGuZHHgWO90XMbTPcpbX+h KC3pzSRdLTBtyVOia6QdRpZ7xk8sBexMTkSINJDwY3FXq2H1a+cVhHupuLkZnPnJmR6SN5 JMhsNR0tx5xiVgSabZQA61NFzD7SfaE= Received: from mail-il1-f198.google.com (mail-il1-f198.google.com [209.85.166.198]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-257-W3P6MpeHOkKAP-D5e8h_sg-1; Thu, 29 Oct 2020 12:09:37 -0400 X-MC-Unique: W3P6MpeHOkKAP-D5e8h_sg-1 Received: by mail-il1-f198.google.com with SMTP id z21so1384569ilf.18 for ; Thu, 29 Oct 2020 09:09:37 -0700 (PDT) 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=mMJP56/uizXzSYsg98spfC7cZWTqeu/RIXJulp4EZso=; b=OrD+nzXHDuBcALWWm+Slg0vpDsF/4odr2yjF5ce2TNwMrt7GPL4BoSvM2wlXcUGoEm 2bQpHRzRkDrsoJCeholjp4MuZMjSFmlQpbR7qv9xVt+H4bEbyg+KuLaV1qcgE7ApSPBe Ttk5zNOriRu5ygEppSExfkWra57jasqakd1qwA1FiUEaPwfdA/4TKw/wnpL9rileJTGd 0mzxEQr5FrKd658r0SgPk0LGPULwQ703whWtuQLUZ5biuLYVyen60XLICyiEXWY7mBp/ Mu/D0VsH1Ww6+XU2ZTO9poX3DW0+Fe9UQ3k5e76+OOEw3AhDkscKvgpk5CB4aQ6qqwly 5qyQ== X-Gm-Message-State: AOAM532t3sudi7UW3N0fJBRmpo4jpidqD3eAi9aQSGyrYDYpq8sG+it5 veiunNQPqYwDkUJaXPvBFF+7COvY6kfM/fjgP2jN5aW89E44ib9bcrZh8w+jMtYJlyYClUinMU7 tKAwFfWCyDRvB0ez5/pqAOoo= X-Received: by 2002:a05:6638:97:: with SMTP id v23mr4340248jao.7.1603987776684; Thu, 29 Oct 2020 09:09:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyJBH4R7jU4ZRR3W/nfPzxHlv4kTIfYiKl/pc7Jw7tbg8v0I0iy3zU3OWDhA1nWAD55TOff3xsw8pPhaIm+8X4= X-Received: by 2002:a05:6638:97:: with SMTP id v23mr4340232jao.7.1603987776475; Thu, 29 Oct 2020 09:09:36 -0700 (PDT) MIME-Version: 1.0 References: <1600511670-27576-1-git-send-email-wangyunjian@huawei.com> <1602751350-2808-1-git-send-email-wangyunjian@huawei.com> <20201028211845.GB137989@outlook.office365.com> In-Reply-To: <20201028211845.GB137989@outlook.office365.com> From: David Marchand Date: Thu, 29 Oct 2020 17:09:24 +0100 Message-ID: To: wangyunjian Cc: Harman Kalra , dev , "Yigit, Ferruh" , Jerin Jacob Kollanukkaran , "Lilijun (Jerry)" , xudingke , dpdk stable Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=dmarchan@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-stable] [EXT] [dpdk-dev] [PATCH v2] eal: fix dereference after null check 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 Wed, Oct 28, 2020 at 10:19 PM Harman Kalra wrote: > On Thu, Oct 15, 2020 at 04:42:30PM +0800, wangyunjian wrote: > > This patch fixes (dereference after null check) coverity issue. > > For this reason, we should add null check at the beginning of the > > function and return error directly if the 'intr_handle' is null. > > > > Coverity issue: 357695, 357751 > > Fixes: 05c4105738d8 ("trace: add interrupt tracepoints") > > Cc: stable@dpdk.org > > > > Signed-off-by: Yunjian Wang > Reviewed-by: Harman Kalra Applied, thanks. -- David Marchand