Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/12171/?format=api
http://patches.dpdk.org/api/patches/12171/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/1461210177-29330-6-git-send-email-helin.zhang@intel.com/", "project": { "id": 1, "url": "http://patches.dpdk.org/api/projects/1/?format=api", "name": "DPDK", "link_name": "dpdk", "list_id": "dev.dpdk.org", "list_email": "dev@dpdk.org", "web_url": "http://core.dpdk.org", "scm_url": "git://dpdk.org/dpdk", "webscm_url": "http://git.dpdk.org/dpdk", "list_archive_url": "https://inbox.dpdk.org/dev", "list_archive_url_format": "https://inbox.dpdk.org/dev/{}", "commit_url_format": "" }, "msgid": "<1461210177-29330-6-git-send-email-helin.zhang@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1461210177-29330-6-git-send-email-helin.zhang@intel.com", "date": "2016-04-21T03:42:56", "name": "[dpdk-dev,5/6] i40e: fix problematic dereference", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "cd9d56daa1566c360497847113639e2ff5d0bf7b", "submitter": { "id": 14, "url": "http://patches.dpdk.org/api/people/14/?format=api", "name": "Zhang, Helin", "email": "helin.zhang@intel.com" }, "delegate": { "id": 10, "url": "http://patches.dpdk.org/api/users/10/?format=api", "username": "bruce", "first_name": "Bruce", "last_name": "Richardson", "email": "bruce.richardson@intel.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/1461210177-29330-6-git-send-email-helin.zhang@intel.com/mbox/", "series": [], "comments": "http://patches.dpdk.org/api/patches/12171/comments/", "check": "pending", "checks": "http://patches.dpdk.org/api/patches/12171/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@dpdk.org", "Delivered-To": "patchwork@dpdk.org", "Received": [ "from [92.243.14.124] (localhost [IPv6:::1])\n\tby dpdk.org (Postfix) with ESMTP id 77E90558A;\n\tThu, 21 Apr 2016 05:43:25 +0200 (CEST)", "from mga09.intel.com (mga09.intel.com [134.134.136.24])\n\tby dpdk.org (Postfix) with ESMTP id 1F3D347CE\n\tfor <dev@dpdk.org>; Thu, 21 Apr 2016 05:43:21 +0200 (CEST)", "from orsmga002.jf.intel.com ([10.7.209.21])\n\tby orsmga102.jf.intel.com with ESMTP; 20 Apr 2016 20:43:14 -0700", "from shvmail01.sh.intel.com ([10.239.29.42])\n\tby orsmga002.jf.intel.com with ESMTP; 20 Apr 2016 20:43:13 -0700", "from shecgisg004.sh.intel.com (shecgisg004.sh.intel.com\n\t[10.239.29.89])\n\tby shvmail01.sh.intel.com with ESMTP id u3L3hCpW028015;\n\tThu, 21 Apr 2016 11:43:12 +0800", "from shecgisg004.sh.intel.com (localhost [127.0.0.1])\n\tby shecgisg004.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP\n\tid u3L3h9eh029650; Thu, 21 Apr 2016 11:43:11 +0800", "(from hzhan75@localhost)\n\tby shecgisg004.sh.intel.com (8.13.6/8.13.6/Submit) id u3L3h9B4029646; \n\tThu, 21 Apr 2016 11:43:09 +0800" ], "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.24,512,1455004800\"; d=\"scan'208\";a=\"959504703\"", "From": "Helin Zhang <helin.zhang@intel.com>", "To": "dev@dpdk.org", "Cc": "Helin Zhang <helin.zhang@intel.com>", "Date": "Thu, 21 Apr 2016 11:42:56 +0800", "Message-Id": "<1461210177-29330-6-git-send-email-helin.zhang@intel.com>", "X-Mailer": "git-send-email 1.7.4.1", "In-Reply-To": "<1461210177-29330-1-git-send-email-helin.zhang@intel.com>", "References": "<1461210177-29330-1-git-send-email-helin.zhang@intel.com>", "Subject": "[dpdk-dev] [PATCH 5/6] i40e: fix problematic dereference", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "patches and discussions about DPDK <dev.dpdk.org>", "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://dpdk.org/ml/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<http://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "Fix issue reported by Coverity.\n\nCoverity ID 13298: Dereference before null check.\n\nFixes: 4861cde46116 (\"i40e: new poll mode driver\")\n\nSigned-off-by: Helin Zhang <helin.zhang@intel.com>\n---\n drivers/net/i40e/i40e_pf.c | 3 ++-\n 1 file changed, 2 insertions(+), 1 deletion(-)", "diff": "diff --git a/drivers/net/i40e/i40e_pf.c b/drivers/net/i40e/i40e_pf.c\nindex 3ec8f7c..1bd599b 100644\n--- a/drivers/net/i40e/i40e_pf.c\n+++ b/drivers/net/i40e/i40e_pf.c\n@@ -123,7 +123,7 @@ int\n i40e_pf_host_vf_reset(struct i40e_pf_vf *vf, bool do_hw_reset)\n {\n \tuint32_t val, i;\n-\tstruct i40e_hw *hw = I40E_PF_TO_HW(vf->pf);\n+\tstruct i40e_hw *hw;\n \tuint16_t vf_id, abs_vf_id, vf_msix_num;\n \tint ret;\n \tstruct i40e_virtchnl_queue_select qsel;\n@@ -131,6 +131,7 @@ i40e_pf_host_vf_reset(struct i40e_pf_vf *vf, bool do_hw_reset)\n \tif (vf == NULL)\n \t\treturn -EINVAL;\n \n+\thw = I40E_PF_TO_HW(vf->pf);\n \tvf_id = vf->vf_idx;\n \tabs_vf_id = vf_id + hw->func_caps.vf_base_id;\n \n", "prefixes": [ "dpdk-dev", "5/6" ] }{ "id": 12171, "url": "