Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/71288/?format=api
http://patches.dpdk.org/api/patches/71288/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20200611213748.1967029-2-maxime.coquelin@redhat.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": "<20200611213748.1967029-2-maxime.coquelin@redhat.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20200611213748.1967029-2-maxime.coquelin@redhat.com", "date": "2020-06-11T21:37:35", "name": "[01/14] bus/dpaa: fix null pointer dereference", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "4b4290f2542d81ddfec580eda82af709675b0319", "submitter": { "id": 512, "url": "http://patches.dpdk.org/api/people/512/?format=api", "name": "Maxime Coquelin", "email": "maxime.coquelin@redhat.com" }, "delegate": { "id": 2642, "url": "http://patches.dpdk.org/api/users/2642/?format=api", "username": "mcoquelin", "first_name": "Maxime", "last_name": "Coquelin", "email": "maxime.coquelin@redhat.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20200611213748.1967029-2-maxime.coquelin@redhat.com/mbox/", "series": [ { "id": 10421, "url": "http://patches.dpdk.org/api/series/10421/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=10421", "date": "2020-06-11T21:37:34", "name": "vDPA API and framework rework", "version": 1, "mbox": "http://patches.dpdk.org/series/10421/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/71288/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/71288/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@inbox.dpdk.org", "Delivered-To": "patchwork@inbox.dpdk.org", "Received": [ "from dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 2ECDBA00BE;\n\tThu, 11 Jun 2020 23:38:15 +0200 (CEST)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 4FBD71B19;\n\tThu, 11 Jun 2020 23:38:13 +0200 (CEST)", "from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com\n [207.211.31.120]) by dpdk.org (Postfix) with ESMTP id 7109E1023\n for <dev@dpdk.org>; Thu, 11 Jun 2020 23:38:11 +0200 (CEST)", "from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com\n [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id\n us-mta-481-alEzl0J-O6aAPLrvV_-HRQ-1; Thu, 11 Jun 2020 17:38:07 -0400", "from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com\n [10.5.11.22])\n (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n (No client certificate requested)\n by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 843B2461;\n Thu, 11 Jun 2020 21:38:05 +0000 (UTC)", "from localhost.localdomain (unknown [10.36.110.37])\n by smtp.corp.redhat.com (Postfix) with ESMTP id 41562100238E;\n Thu, 11 Jun 2020 21:38:01 +0000 (UTC)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n s=mimecast20190719; t=1591911490;\n h=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n to:to:cc:cc:mime-version:mime-version:content-type:content-type:\n content-transfer-encoding:content-transfer-encoding:\n in-reply-to:in-reply-to:references:references;\n bh=XT5uGVn4sUr1KhGhcRk1YIvJybNa87Z9+nQHYBzS/vM=;\n b=D7Bc1DqngSxX7kpIVdWg8zy2CuvhRMXuBwPR8u1T8ldmDJ+km29JkWjFCQDkFsrKFRp1KU\n 006U0uJNCMEkcZUpuS+T3kyTqjgY/PeK9wnqnjBR37StpAWJaRpJztuaonaWYOtVnQF5AG\n JFInz2pbBWMYEC//rjv8MuW/BgyXbxQ=", "X-MC-Unique": "alEzl0J-O6aAPLrvV_-HRQ-1", "From": "Maxime Coquelin <maxime.coquelin@redhat.com>", "To": "dev@dpdk.org, matan@mellanox.com, xiao.w.wang@intel.com,\n zhihong.wang@intel.com, xiaolong.ye@intel.com, chenbo.xia@intel.com,\n david.marchand@redhat.com, amorenoz@redhat.com, shreyansh.jain@nxp.com,\n viacheslavo@mellanox.com, hemant.agrawal@nxp.com, sachin.saxena@nxp.com", "Cc": "Maxime Coquelin <maxime.coquelin@redhat.com>,\n\tstable@dpdk.org", "Date": "Thu, 11 Jun 2020 23:37:35 +0200", "Message-Id": "<20200611213748.1967029-2-maxime.coquelin@redhat.com>", "In-Reply-To": "<20200611213748.1967029-1-maxime.coquelin@redhat.com>", "References": "<20200611213748.1967029-1-maxime.coquelin@redhat.com>", "MIME-Version": "1.0", "X-Scanned-By": "MIMEDefang 2.84 on 10.5.11.22", "X-Mimecast-Spam-Score": "0", "X-Mimecast-Originator": "redhat.com", "Content-Type": "text/plain; charset=US-ASCII", "Content-Transfer-Encoding": "8bit", "Subject": "[dpdk-dev] [PATCH 01/14] bus/dpaa: fix null pointer dereference", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://mails.dpdk.org/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "This patches fixes a null pointer derefencing that happens\nwhen the device string passed to the iterator is NULL. This\nsituation can happen when iterating on a class type.\nFor example:\n\nRTE_DEV_FOREACH(dev, \"class=eth\", &dev_iter) {\n ...\n}\n\nFixes: e79df833d3f6 (\"bus/dpaa: support hotplug ops\")\nCc: stable@dpdk.org\nCc: shreyansh.jain@nxp.com\n\nSigned-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>\n---\n drivers/bus/dpaa/dpaa_bus.c | 5 +++++\n 1 file changed, 5 insertions(+)", "diff": "diff --git a/drivers/bus/dpaa/dpaa_bus.c b/drivers/bus/dpaa/dpaa_bus.c\nindex d53fe6083a..216f38acd4 100644\n--- a/drivers/bus/dpaa/dpaa_bus.c\n+++ b/drivers/bus/dpaa/dpaa_bus.c\n@@ -703,6 +703,11 @@ dpaa_bus_dev_iterate(const void *start, const char *str,\n \tstruct rte_dpaa_device *dev;\n \tchar *dup, *dev_name = NULL;\n \n+\tif (str == NULL) {\n+\t\tDPAA_BUS_DEBUG(\"No device string\\n\");\n+\t\treturn NULL;\n+\t}\n+\n \t/* Expectation is that device would be name=device_name */\n \tif (strncmp(str, \"name=\", 5) != 0) {\n \t\tDPAA_BUS_DEBUG(\"Invalid device string (%s)\\n\", str);\n", "prefixes": [ "01/14" ] }{ "id": 71288, "url": "