Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/26987/?format=api
http://patches.dpdk.org/api/patches/26987/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/1500307787-73213-1-git-send-email-harry.van.haaren@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": "<1500307787-73213-1-git-send-email-harry.van.haaren@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1500307787-73213-1-git-send-email-harry.van.haaren@intel.com", "date": "2017-07-17T16:09:47", "name": "[dpdk-dev] event: fix memory realloc check in port config", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "b470e3c67a8240de6f40ce17ee1b317a9b353b65", "submitter": { "id": 317, "url": "http://patches.dpdk.org/api/people/317/?format=api", "name": "Van Haaren, Harry", "email": "harry.van.haaren@intel.com" }, "delegate": { "id": 310, "url": "http://patches.dpdk.org/api/users/310/?format=api", "username": "jerin", "first_name": "Jerin", "last_name": "Jacob", "email": "jerinj@marvell.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/1500307787-73213-1-git-send-email-harry.van.haaren@intel.com/mbox/", "series": [], "comments": "http://patches.dpdk.org/api/patches/26987/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/26987/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 4ED3B377E;\n\tMon, 17 Jul 2017 18:09:57 +0200 (CEST)", "from mga07.intel.com (mga07.intel.com [134.134.136.100])\n\tby dpdk.org (Postfix) with ESMTP id 5C8C2376C\n\tfor <dev@dpdk.org>; Mon, 17 Jul 2017 18:09:56 +0200 (CEST)", "from fmsmga005.fm.intel.com ([10.253.24.32])\n\tby orsmga105.jf.intel.com with ESMTP; 17 Jul 2017 09:09:48 -0700", "from silpixa00398672.ir.intel.com ([10.237.223.128])\n\tby fmsmga005.fm.intel.com with ESMTP; 17 Jul 2017 09:09:47 -0700" ], "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.40,375,1496127600\"; d=\"scan'208\";a=\"127693869\"", "From": "Harry van Haaren <harry.van.haaren@intel.com>", "To": "dev@dpdk.org", "Cc": "Harry van Haaren <harry.van.haaren@intel.com>,\n\tjerin.jacob@caviumnetworks.com", "Date": "Mon, 17 Jul 2017 17:09:47 +0100", "Message-Id": "<1500307787-73213-1-git-send-email-harry.van.haaren@intel.com>", "X-Mailer": "git-send-email 2.7.4", "Subject": "[dpdk-dev] [PATCH] event: fix memory realloc check in port config", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "DPDK patches and discussions <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": "This commit fixes the check to use the just reallocated\nlinks_map variable, instead of stale dev->data->links_map.\nLater the new variable is written to the dev->data->links_map,\nso the stale-ness is only temporary.\n\nCoverity issue: 143456\nFixes: 4f0804bbdfb9 (\"eventdev: implement the northbound APIs\")\nCc: jerin.jacob@caviumnetworks.com\n\nSigned-off-by: Harry van Haaren <harry.van.haaren@intel.com>\n---\n lib/librte_eventdev/rte_eventdev.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)", "diff": "diff --git a/lib/librte_eventdev/rte_eventdev.c b/lib/librte_eventdev/rte_eventdev.c\nindex ca2900c..bbb3805 100644\n--- a/lib/librte_eventdev/rte_eventdev.c\n+++ b/lib/librte_eventdev/rte_eventdev.c\n@@ -298,7 +298,7 @@ rte_event_dev_port_config(struct rte_eventdev *dev, uint8_t nb_ports)\n \t\t\tsizeof(dev->data->links_map[0]) * nb_ports *\n \t\t\tRTE_EVENT_MAX_QUEUES_PER_DEV,\n \t\t\tRTE_CACHE_LINE_SIZE);\n-\t\tif (dev->data->links_map == NULL) {\n+\t\tif (links_map == NULL) {\n \t\t\tdev->data->nb_ports = 0;\n \t\t\tRTE_EDEV_LOG_ERR(\"failed to realloc mem for port_map,\"\n \t\t\t\t\t\"nb_ports %u\", nb_ports);\n", "prefixes": [ "dpdk-dev" ] }{ "id": 26987, "url": "