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 02961A04DD for ; Thu, 22 Oct 2020 22:01:35 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D7C435AA0; Thu, 22 Oct 2020 22:01:33 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by dpdk.org (Postfix) with ESMTP id 82CA15AA0 for ; Thu, 22 Oct 2020 22:01:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1603396889; 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=35jMUc/myD3haQ0sjS+rmBHUz61SG/M6oy9pWuD5iPw=; b=d8FgNkcgqYDCFTaWDN9ji/s4MEWaPSFZNkoI/e3TkU6tyoFRMr8s99nW4hfETZLEbJJkBA zWTpI/8WFj4QgmcCBjFd3q9KLc507A7GXdOirYG9MQvwi9IDPsZceohKexVvcTbuMrIKD3 sP2pz5Z7oLPLY6qGtcbp5YCkY88I9qs= Received: from mail-vs1-f71.google.com (mail-vs1-f71.google.com [209.85.217.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-372-UuKuIlA_MkmtTaZP14eY4g-1; Thu, 22 Oct 2020 16:01:24 -0400 X-MC-Unique: UuKuIlA_MkmtTaZP14eY4g-1 Received: by mail-vs1-f71.google.com with SMTP id r10so723431vsq.7 for ; Thu, 22 Oct 2020 13:01:24 -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=35jMUc/myD3haQ0sjS+rmBHUz61SG/M6oy9pWuD5iPw=; b=NBjhvxpVHF9DM/hjLFxzQXTB7QVQvJV1ave+LQtYJ1GdfzRiURmjJLeRbJL41TB6fO 0rS/zDgpHQ+XSQWErJ0gTUSJ5Uhg7PIHpYbF/1q7pfEa2KLZ+Y+Oj/fcMOrCTv1t2mQ3 lcmCIuecmxgmvG7BqC7s+d27g0WA4DYJaTaDjkK9JHaL6lBKV9wVds02ptnWuLOC0Gnd KuNgF3sY17Aps/k+gxfz/trUbruzmWJAKAs7pT/CulzZeyi9nK59L86gUy4WdXsrS06U bjMIa/Bm9Ua6Br3fnDrXlMJs+i623V27iHij+293pW8gJtLVkDpZhoYtBv4jGxW3CgWV PIYQ== X-Gm-Message-State: AOAM533TvfwTD8/WrJ6z30Im+e/ZuoQfpY5WHfkSKmuOtq8JpBNSBK0s 69dpVJY5NEHSmLV9/u1ziBQu8Lw/Bu9PaW3g0slH+2anSbIPv3ec73kRL9Utq6YkH12eBxmiPGx jZ1Do69fidQvqTTqYCKcv8l4= X-Received: by 2002:ab0:4983:: with SMTP id e3mr2731226uad.41.1603396884183; Thu, 22 Oct 2020 13:01:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw7oMdwU9orAxWw/kUfHcLOpoL3sJKOuKTrxfaiPw3lMCsGCTO7NBO5fG9hEptCbYFni80LAl3U688EJY/JbpY= X-Received: by 2002:ab0:4983:: with SMTP id e3mr2731200uad.41.1603396883936; Thu, 22 Oct 2020 13:01:23 -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> In-Reply-To: <1602751350-2808-1-git-send-email-wangyunjian@huawei.com> From: David Marchand Date: Thu, 22 Oct 2020 22:01:12 +0200 Message-ID: To: Harman Kalra , Jerin Jacob Kollanukkaran , Sunil Kumar Kori Cc: dev , "Yigit, Ferruh" , "Lilijun (Jerry)" , xudingke , Yunjian Wang , 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] [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 Thu, Oct 15, 2020 at 10:43 AM wangyunjian wrote: > > From: Yunjian Wang > > 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 Review, please. -- David Marchand