Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/584824/?format=api
{ "id": 584824, "url": "http://patchwork.ozlabs.org/api/patches/584824/?format=api", "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/1455815965-9735-1-git-send-email-avinash.dayanand@intel.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": "<1455815965-9735-1-git-send-email-avinash.dayanand@intel.com>", "list_archive_url": null, "date": "2016-02-18T17:19:24", "name": "[v2,next,S29,08/14] i40e: add check for null vsi", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": false, "hash": "767bb351ddeeb306193e5bfe2c2b790ad9c94956", "submitter": { "id": 67689, "url": "http://patchwork.ozlabs.org/api/people/67689/?format=api", "name": "Dayanand, Avinash", "email": "avinash.dayanand@intel.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/1455815965-9735-1-git-send-email-avinash.dayanand@intel.com/mbox/", "series": [], "comments": "http://patchwork.ozlabs.org/api/patches/584824/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/584824/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<intel-wired-lan-bounces@lists.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" ], "Received": [ "from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137])\n\tby ozlabs.org (Postfix) with ESMTP id 63D0E140B95\n\tfor <incoming@patchwork.ozlabs.org>;\n\tFri, 19 Feb 2016 04:19:31 +1100 (AEDT)", "from localhost (localhost [127.0.0.1])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id B875C852F9;\n\tThu, 18 Feb 2016 17:19: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 hfG6pXvbHVX0; Thu, 18 Feb 2016 17:19:30 +0000 (UTC)", "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id 0CE868484D;\n\tThu, 18 Feb 2016 17:19:30 +0000 (UTC)", "from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133])\n\tby ash.osuosl.org (Postfix) with ESMTP id 6B8291C1574\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tThu, 18 Feb 2016 17:19:28 +0000 (UTC)", "from localhost (localhost [127.0.0.1])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id 67036936E6\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tThu, 18 Feb 2016 17:19:28 +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 hOdf9QYgfqMk for <intel-wired-lan@lists.osuosl.org>;\n\tThu, 18 Feb 2016 17:19:26 +0000 (UTC)", "from mga01.intel.com (mga01.intel.com [192.55.52.88])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id EC660954C8\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tThu, 18 Feb 2016 17:19:25 +0000 (UTC)", "from orsmga002.jf.intel.com ([10.7.209.21])\n\tby fmsmga101.fm.intel.com with ESMTP; 18 Feb 2016 09:19:27 -0800", "from jahay1-mobl2.amr.corp.intel.com (HELO\n\tlocalhost.localdomain.localdomain) ([134.134.3.116])\n\tby orsmga002.jf.intel.com with ESMTP; 18 Feb 2016 09:19:25 -0800" ], "X-Virus-Scanned": [ "amavisd-new at osuosl.org", "amavisd-new at osuosl.org" ], "X-Greylist": "domain auto-whitelisted by SQLgrey-1.7.6", "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.22,466,1449561600\"; d=\"scan'208\";a=\"915925200\"", "From": "Avinash Dayanand <avinash.dayanand@intel.com>", "To": "intel-wired-lan@lists.osuosl.org", "Date": "Thu, 18 Feb 2016 09:19:24 -0800", "Message-Id": "<1455815965-9735-1-git-send-email-avinash.dayanand@intel.com>", "X-Mailer": "git-send-email 2.1.0", "Subject": "[Intel-wired-lan] [v2 next PATCH S29 08/14] i40e: add check for\n\tnull vsi", "X-BeenThere": "intel-wired-lan@lists.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.lists.osuosl.org>", "List-Unsubscribe": "<http://lists.osuosl.org/mailman/options/intel-wired-lan>, \n\t<mailto:intel-wired-lan-request@lists.osuosl.org?subject=unsubscribe>", "List-Archive": "<http://lists.osuosl.org/pipermail/intel-wired-lan/>", "List-Post": "<mailto:intel-wired-lan@lists.osuosl.org>", "List-Help": "<mailto:intel-wired-lan-request@lists.osuosl.org?subject=help>", "List-Subscribe": "<http://lists.osuosl.org/mailman/listinfo/intel-wired-lan>, \n\t<mailto:intel-wired-lan-request@lists.osuosl.org?subject=subscribe>", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=\"us-ascii\"", "Content-Transfer-Encoding": "7bit", "Errors-To": "intel-wired-lan-bounces@lists.osuosl.org", "Sender": "\"Intel-wired-lan\" <intel-wired-lan-bounces@lists.osuosl.org>" }, "content": "From: John Underwood <johnx.underwood@intel.com>\n\nReturn from i40e_vsi_reinit_setup() if vsi param is NULL.\nThis makes this code consistent with all the other code that\nchecks for NULL before using one of the VSI pointers accessed\nwith an indexed variable. (Indexed VSI pointers are\nintentionally set to NULL in i40e_vsi_clear() and\ni40e_remove().\n\nv2: change patch title\n\nSigned-off-by: John Underwood <johnx.underwood@intel.com>\nChange-ID: I3bc8b909c70fd2439334eeae994d151f61480985\n---\n drivers/net/ethernet/intel/i40e/i40e_main.c | 7 ++++++-\n 1 file changed, 6 insertions(+), 1 deletion(-)", "diff": "diff --git a/drivers/net/ethernet/intel/i40e/i40e_main.c b/drivers/net/ethernet/intel/i40e/i40e_main.c\nindex 2a02f93..3c910ef 100644\n--- a/drivers/net/ethernet/intel/i40e/i40e_main.c\n+++ b/drivers/net/ethernet/intel/i40e/i40e_main.c\n@@ -9579,10 +9579,15 @@ vector_setup_out:\n **/\n static struct i40e_vsi *i40e_vsi_reinit_setup(struct i40e_vsi *vsi)\n {\n-\tstruct i40e_pf *pf = vsi->back;\n+\tstruct i40e_pf *pf;\n \tu8 enabled_tc;\n \tint ret;\n \n+\tif (!vsi)\n+\t\treturn NULL;\n+\n+\tpf = vsi->back;\n+\n \ti40e_put_lump(pf->qp_pile, vsi->base_queue, vsi->idx);\n \ti40e_vsi_clear_rings(vsi);\n \n", "prefixes": [ "v2", "next", "S29", "08/14" ] }