get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 759160,
    "url": "http://patchwork.ozlabs.org/api/patches/759160/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/20170505192913.4905-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": "<20170505192913.4905-1-christophe.jaillet@wanadoo.fr>",
    "list_archive_url": null,
    "date": "2017-05-05T19:29:13",
    "name": "i40e: Check for memory allocation failure",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "452fa3f55809cc780f9814e58ae01b4280848b43",
    "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/20170505192913.4905-1-christophe.jaillet@wanadoo.fr/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/759160/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/759160/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"
        ],
        "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 3wKNKT51qkz9s2G\n\tfor <incoming@patchwork.ozlabs.org>;\n\tSat,  6 May 2017 06:09:49 +1000 (AEST)",
            "from localhost (localhost [127.0.0.1])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id AD9C08A1F8;\n\tFri,  5 May 2017 20:09:47 +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 Dk6ZUirk8K0w; Fri,  5 May 2017 20:09:45 +0000 (UTC)",
            "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id 3380C8A1F2;\n\tFri,  5 May 2017 20:09:45 +0000 (UTC)",
            "from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136])\n\tby ash.osuosl.org (Postfix) with ESMTP id C6B531C0D59\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tFri,  5 May 2017 19:33:20 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n\tby silver.osuosl.org (Postfix) with ESMTP id BAD5920C7C\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tFri,  5 May 2017 19:33:20 +0000 (UTC)",
            "from silver.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id JSQPg3uUqPEr for <intel-wired-lan@lists.osuosl.org>;\n\tFri,  5 May 2017 19:33:19 +0000 (UTC)",
            "from smtp.smtpout.orange.fr (smtp10.smtpout.orange.fr\n\t[80.12.242.132])\n\tby silver.osuosl.org (Postfix) with ESMTPS id 2B99B20C62\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tFri,  5 May 2017 19:33:18 +0000 (UTC)",
            "from localhost.localdomain ([92.140.237.40]) by mwinf5d45 with ME\n\tid GjZF1v00W0syxwk03jZFMc; Fri, 05 May 2017 21:33:16 +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": "Fri, 05 May 2017 21:33:16 +0200",
        "X-ME-IP": "92.140.237.40",
        "From": "Christophe JAILLET <christophe.jaillet@wanadoo.fr>",
        "To": "jeffrey.t.kirsher@intel.com",
        "Date": "Fri,  5 May 2017 21:29:13 +0200",
        "Message-Id": "<20170505192913.4905-1-christophe.jaillet@wanadoo.fr>",
        "X-Mailer": "git-send-email 2.11.0",
        "X-Mailman-Approved-At": "Fri, 05 May 2017 20:09:41 +0000",
        "Cc": "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: Check for memory allocation failure",
        "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. Return -ENOMEM\ninstead.\n\nSigned-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>\n---\n drivers/net/ethernet/intel/i40e/i40e_client.c | 2 ++\n 1 file changed, 2 insertions(+)",
    "diff": "diff --git a/drivers/net/ethernet/intel/i40e/i40e_client.c b/drivers/net/ethernet/intel/i40e/i40e_client.c\nindex eb2896fd52a6..86e99ed7fb04 100644\n--- a/drivers/net/ethernet/intel/i40e/i40e_client.c\n+++ b/drivers/net/ethernet/intel/i40e/i40e_client.c\n@@ -595,6 +595,8 @@ static int i40e_client_setup_qvlist(struct i40e_info *ldev,\n \tsize = sizeof(struct i40e_qvlist_info) +\n \t       (sizeof(struct i40e_qv_info) * (qvlist_info->num_vectors - 1));\n \tldev->qvlist_info = kzalloc(size, GFP_KERNEL);\n+\tif (!ldev->qvlist_info)\n+\t\treturn -ENOMEM;\n \tldev->qvlist_info->num_vectors = qvlist_info->num_vectors;\n \n \tfor (i = 0; i < qvlist_info->num_vectors; i++) {\n",
    "prefixes": []
}