Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/827823/?format=api
{ "id": 827823, "url": "http://patchwork.ozlabs.org/api/patches/827823/?format=api", "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/20171018203425.GA983@embeddedor.com/", "project": { "id": 46, "url": "http://patchwork.ozlabs.org/api/projects/46/?format=api", "name": "Intel Wired Ethernet development", "link_name": "intel-wired-lan", "list_id": "intel-wired-lan.osuosl.org", "list_email": "intel-wired-lan@osuosl.org", "web_url": "", "scm_url": "", "webscm_url": "", "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20171018203425.GA983@embeddedor.com>", "list_archive_url": null, "date": "2017-10-18T20:34:25", "name": "i40e/virtchnl: fix application of sizeof to pointer", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": false, "hash": "e7de396bfd153391b784a0447772ee8f59330ec6", "submitter": { "id": 71553, "url": "http://patchwork.ozlabs.org/api/people/71553/?format=api", "name": "Gustavo A. R. Silva", "email": "garsilva@embeddedor.com" }, "delegate": { "id": 68, "url": "http://patchwork.ozlabs.org/api/users/68/?format=api", "username": "jtkirshe", "first_name": "Jeff", "last_name": "Kirsher", "email": "jeffrey.t.kirsher@intel.com" }, "mbox": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/20171018203425.GA983@embeddedor.com/mbox/", "series": [ { "id": 8974, "url": "http://patchwork.ozlabs.org/api/series/8974/?format=api", "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/list/?series=8974", "date": "2017-10-18T20:34:25", "name": "i40e/virtchnl: fix application of sizeof to pointer", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/8974/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/827823/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/827823/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<intel-wired-lan-bounces@osuosl.org>", "X-Original-To": [ "incoming@patchwork.ozlabs.org", "intel-wired-lan@lists.osuosl.org" ], "Delivered-To": [ "patchwork-incoming@bilbo.ozlabs.org", "intel-wired-lan@lists.osuosl.org" ], "Authentication-Results": "ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=osuosl.org\n\t(client-ip=140.211.166.133; helo=hemlock.osuosl.org;\n\tenvelope-from=intel-wired-lan-bounces@osuosl.org;\n\treceiver=<UNKNOWN>)", "Received": [ "from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133])\n\t(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3yHP1R6TTWz9t3x\n\tfor <incoming@patchwork.ozlabs.org>;\n\tThu, 19 Oct 2017 07:34:35 +1100 (AEDT)", "from localhost (localhost [127.0.0.1])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id DE1EB8883F;\n\tWed, 18 Oct 2017 20:34:33 +0000 (UTC)", "from hemlock.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id TlS5s0+AyZaH; Wed, 18 Oct 2017 20:34:32 +0000 (UTC)", "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id 015FC887C7;\n\tWed, 18 Oct 2017 20:34:32 +0000 (UTC)", "from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137])\n\tby ash.osuosl.org (Postfix) with ESMTP id 3E1B01C0015\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tWed, 18 Oct 2017 20:34:30 +0000 (UTC)", "from localhost (localhost [127.0.0.1])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id 3337F87AB9\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tWed, 18 Oct 2017 20:34:30 +0000 (UTC)", "from fraxinus.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id 9hLorJUQO6Kx for <intel-wired-lan@lists.osuosl.org>;\n\tWed, 18 Oct 2017 20:34:29 +0000 (UTC)", "from gateway20.websitewelcome.com (gateway20.websitewelcome.com\n\t[192.185.51.6])\n\tby fraxinus.osuosl.org (Postfix) with ESMTPS id 4BD3487AA6\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tWed, 18 Oct 2017 20:34:29 +0000 (UTC)", "from cm13.websitewelcome.com (cm13.websitewelcome.com\n\t[100.42.49.6])\n\tby gateway20.websitewelcome.com (Postfix) with ESMTP id 830A7400E0252\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tWed, 18 Oct 2017 15:34:28 -0500 (CDT)", "from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with SMTP\n\tid 4v2qe2VqjrWst4v2qeoWWq; Wed, 18 Oct 2017 15:34:28 -0500", "from [189.152.226.223] (port=56820 helo=embeddedor)\n\tby gator4166.hostgator.com with esmtpa (Exim 4.87)\n\t(envelope-from <garsilva@embeddedor.com>)\n\tid 1e4v2q-001YYx-0v; Wed, 18 Oct 2017 15:34:28 -0500" ], "X-Virus-Scanned": [ "amavisd-new at osuosl.org", "amavisd-new at osuosl.org" ], "X-Greylist": "from auto-whitelisted by SQLgrey-1.7.6", "Date": "Wed, 18 Oct 2017 15:34:25 -0500", "From": "\"Gustavo A. R. Silva\" <garsilva@embeddedor.com>", "To": "Jeff Kirsher <jeffrey.t.kirsher@intel.com>", "Message-ID": "<20171018203425.GA983@embeddedor.com>", "MIME-Version": "1.0", "Content-Disposition": "inline", "User-Agent": "Mutt/1.5.24 (2015-08-30)", "X-AntiAbuse": [ "This header was added to track abuse,\n\tplease include it with any abuse report", "Primary Hostname - gator4166.hostgator.com", "Original Domain - lists.osuosl.org", "Originator/Caller UID/GID - [47 12] / [47 12]", "Sender Address Domain - embeddedor.com" ], "X-BWhitelist": "no", "X-Source-IP": "189.152.226.223", "X-Exim-ID": "1e4v2q-001YYx-0v", "X-Source": "", "X-Source-Args": "", "X-Source-Dir": "", "X-Source-Sender": "(embeddedor) [189.152.226.223]:56820", "X-Source-Auth": "garsilva@embeddedor.com", "X-Email-Count": "4", "X-Source-Cap": "Z3V6aWRpbmU7Z3V6aWRpbmU7Z2F0b3I0MTY2Lmhvc3RnYXRvci5jb20=", "X-Local-Domain": "yes", "Cc": "netdev@vger.kernel.org, intel-wired-lan@lists.osuosl.org,\n\tlinux-kernel@vger.kernel.org,\n\t\"Gustavo A. R. Silva\" <garsilva@embeddedor.com>", "Subject": "[Intel-wired-lan] [PATCH] i40e/virtchnl: fix application of sizeof\n\tto pointer", "X-BeenThere": "intel-wired-lan@osuosl.org", "X-Mailman-Version": "2.1.18-1", "Precedence": "list", "List-Id": "Intel Wired Ethernet Linux Kernel Driver Development\n\t<intel-wired-lan.osuosl.org>", "List-Unsubscribe": "<https://lists.osuosl.org/mailman/options/intel-wired-lan>, \n\t<mailto:intel-wired-lan-request@osuosl.org?subject=unsubscribe>", "List-Archive": "<http://lists.osuosl.org/pipermail/intel-wired-lan/>", "List-Post": "<mailto:intel-wired-lan@osuosl.org>", "List-Help": "<mailto:intel-wired-lan-request@osuosl.org?subject=help>", "List-Subscribe": "<https://lists.osuosl.org/mailman/listinfo/intel-wired-lan>, \n\t<mailto:intel-wired-lan-request@osuosl.org?subject=subscribe>", "Content-Type": "text/plain; charset=\"us-ascii\"", "Content-Transfer-Encoding": "7bit", "Errors-To": "intel-wired-lan-bounces@osuosl.org", "Sender": "\"Intel-wired-lan\" <intel-wired-lan-bounces@osuosl.org>" }, "content": "sizeof when applied to a pointer typed expression gives the size of\nthe pointer.\n\nThe proper fix in this particular case is to code sizeof(*vfres)\ninstead of sizeof(vfres).\n\nThis issue was detected with the help of Coccinelle.\n\nSigned-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>\n---\nThis code was tested by compilation only.\n\n drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)", "diff": "diff --git a/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c b/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c\nindex f8a794b..56dd1e8 100644\n--- a/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c\n+++ b/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c\n@@ -2086,7 +2086,7 @@ static int i40e_vc_request_queues_msg(struct i40e_vf *vf, u8 *msg, int msglen)\n \t}\n \n \treturn i40e_vc_send_msg_to_vf(vf, VIRTCHNL_OP_REQUEST_QUEUES, 0,\n-\t\t\t\t (u8 *)vfres, sizeof(vfres));\n+\t\t\t\t (u8 *)vfres, sizeof(*vfres));\n }\n \n /**\n", "prefixes": [] }