get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/799442/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 799442,
    "url": "http://patchwork.ozlabs.org/api/patches/799442/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/20170806213701.19317-1-christophe.jaillet@wanadoo.fr/",
    "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": "<20170806213701.19317-1-christophe.jaillet@wanadoo.fr>",
    "list_archive_url": null,
    "date": "2017-08-06T21:37:01",
    "name": "i40e: Fix a potential NULL pointer dereference",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "039679c6438ff0e1a262445672599eaae261d2cd",
    "submitter": {
        "id": 66309,
        "url": "http://patchwork.ozlabs.org/api/people/66309/?format=api",
        "name": "Christophe JAILLET",
        "email": "christophe.jaillet@wanadoo.fr"
    },
    "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/20170806213701.19317-1-christophe.jaillet@wanadoo.fr/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/799442/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/799442/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 3xRnPt6Hp2z9ryr\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed,  9 Aug 2017 07:21:06 +1000 (AEST)",
            "from localhost (localhost [127.0.0.1])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id AAD3B88B43;\n\tTue,  8 Aug 2017 21:21:04 +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 OdU6a5oPNkGN; Tue,  8 Aug 2017 21:21:04 +0000 (UTC)",
            "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id 041DA887D3;\n\tTue,  8 Aug 2017 21:21:04 +0000 (UTC)",
            "from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138])\n\tby ash.osuosl.org (Postfix) with ESMTP id 6E00E1C0264\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tSun,  6 Aug 2017 21:37:25 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id 646D5833C6\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tSun,  6 Aug 2017 21:37:25 +0000 (UTC)",
            "from whitealder.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id xzFNtnjGNsxj for <intel-wired-lan@lists.osuosl.org>;\n\tSun,  6 Aug 2017 21:37:24 +0000 (UTC)",
            "from smtp.smtpout.orange.fr (smtp07.smtpout.orange.fr\n\t[80.12.242.129])\n\tby whitealder.osuosl.org (Postfix) with ESMTPS id CA7C582FB9\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tSun,  6 Aug 2017 21:37:23 +0000 (UTC)",
            "from localhost.localdomain ([90.21.163.120]) by mwinf5d30 with ME\n\tid txdB1v0052cA9Na03xdBfT; Sun, 06 Aug 2017 23:37:21 +0200"
        ],
        "X-Virus-Scanned": [
            "amavisd-new at osuosl.org",
            "amavisd-new at osuosl.org"
        ],
        "X-Greylist": "domain auto-whitelisted by SQLgrey-1.7.6",
        "X-ME-Helo": "localhost.localdomain",
        "X-ME-Auth": "Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI=",
        "X-ME-Date": "Sun, 06 Aug 2017 23:37:21 +0200",
        "X-ME-IP": "90.21.163.120",
        "From": "Christophe JAILLET <christophe.jaillet@wanadoo.fr>",
        "To": "jeffrey.t.kirsher@intel.com",
        "Date": "Sun,  6 Aug 2017 23:37:01 +0200",
        "Message-Id": "<20170806213701.19317-1-christophe.jaillet@wanadoo.fr>",
        "X-Mailer": "git-send-email 2.11.0",
        "X-Mailman-Approved-At": "Tue, 08 Aug 2017 21:21:02 +0000",
        "Cc": "netdev@vger.kernel.org, kernel-janitors@vger.kernel.org,\n\tChristophe JAILLET <christophe.jaillet@wanadoo.fr>,\n\tintel-wired-lan@lists.osuosl.org, linux-kernel@vger.kernel.org",
        "Subject": "[Intel-wired-lan] [PATCH] i40e: Fix a potential NULL pointer\n\tdereference",
        "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>",
        "MIME-Version": "1.0",
        "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": "If 'kzalloc()' fails, a NULL pointer will be dereferenced.\nReturn an error code (-ENOMEM) instead.\n\nSigned-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>\n---\n drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c | 3 +++\n 1 file changed, 3 insertions(+)",
    "diff": "diff --git a/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c b/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c\nindex 979110d59f67..facd48fc15d4 100644\n--- a/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c\n+++ b/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c\n@@ -423,6 +423,9 @@ static int i40e_config_iwarp_qvlist(struct i40e_vf *vf,\n \t       (sizeof(struct virtchnl_iwarp_qv_info) *\n \t\t\t\t\t\t(qvlist_info->num_vectors - 1));\n \tvf->qvlist_info = kzalloc(size, GFP_KERNEL);\n+\tif (!vf->qvlist_info)\n+\t\treturn -ENOMEM;\n+\n \tvf->qvlist_info->num_vectors = qvlist_info->num_vectors;\n \n \tmsix_vf = pf->hw.func_caps.num_msix_vectors_vf;\n",
    "prefixes": []
}