get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 892152,
    "url": "http://patchwork.ozlabs.org/api/patches/892152/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/1522241445-77090-1-git-send-email-weiyongjun1@huawei.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": "<1522241445-77090-1-git-send-email-weiyongjun1@huawei.com>",
    "list_archive_url": null,
    "date": "2018-03-28T12:50:45",
    "name": "[net-next] ice: Fix error return code in ice_init_hw()",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "a736b1938e3152b120eea130a5cf6c6f234c535a",
    "submitter": {
        "id": 69830,
        "url": "http://patchwork.ozlabs.org/api/people/69830/?format=api",
        "name": "Wei Yongjun",
        "email": "weiyongjun1@huawei.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/1522241445-77090-1-git-send-email-weiyongjun1@huawei.com/mbox/",
    "series": [
        {
            "id": 36257,
            "url": "http://patchwork.ozlabs.org/api/series/36257/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/list/?series=36257",
            "date": "2018-03-28T12:50:45",
            "name": "[net-next] ice: Fix error return code in ice_init_hw()",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/36257/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/892152/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/892152/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.138; helo=whitealder.osuosl.org;\n\tenvelope-from=intel-wired-lan-bounces@osuosl.org;\n\treceiver=<UNKNOWN>)",
            "ozlabs.org;\n\tdmarc=none (p=none dis=none) header.from=huawei.com"
        ],
        "Received": [
            "from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138])\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 40B7036LLcz9s12\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed, 28 Mar 2018 23:45:38 +1100 (AEDT)",
            "from localhost (localhost [127.0.0.1])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id 196CF88B39;\n\tWed, 28 Mar 2018 12:45:37 +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 UBE252VVR9On; Wed, 28 Mar 2018 12:45:34 +0000 (UTC)",
            "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id 5DFF188B12;\n\tWed, 28 Mar 2018 12:45:34 +0000 (UTC)",
            "from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137])\n\tby ash.osuosl.org (Postfix) with ESMTP id 16E031C0604\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tWed, 28 Mar 2018 12:45:33 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id 1316E874C3\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tWed, 28 Mar 2018 12:45:33 +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 YPpI_kGPUrB7 for <intel-wired-lan@lists.osuosl.org>;\n\tWed, 28 Mar 2018 12:45:32 +0000 (UTC)",
            "from huawei.com (szxga04-in.huawei.com [45.249.212.190])\n\tby fraxinus.osuosl.org (Postfix) with ESMTPS id 1E95087472\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tWed, 28 Mar 2018 12:45:32 +0000 (UTC)",
            "from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.60])\n\tby Forcepoint Email with ESMTP id 97C474A045848;\n\tWed, 28 Mar 2018 20:45:16 +0800 (CST)",
            "from localhost.localdomain.localdomain (10.175.113.25) by\n\tDGGEMS408-HUB.china.huawei.com (10.3.19.208) with Microsoft SMTP\n\tServer id 14.3.361.1; Wed, 28 Mar 2018 20:45:08 +0800"
        ],
        "X-Virus-Scanned": [
            "amavisd-new at osuosl.org",
            "amavisd-new at osuosl.org"
        ],
        "X-Greylist": "domain auto-whitelisted by SQLgrey-1.7.6",
        "From": "Wei Yongjun <weiyongjun1@huawei.com>",
        "To": "Jeff Kirsher <jeffrey.t.kirsher@intel.com>",
        "Date": "Wed, 28 Mar 2018 12:50:45 +0000",
        "Message-ID": "<1522241445-77090-1-git-send-email-weiyongjun1@huawei.com>",
        "X-Mailer": "git-send-email 1.8.3.1",
        "MIME-Version": "1.0",
        "X-Originating-IP": "[10.175.113.25]",
        "X-CFilter-Loop": "Reflected",
        "Subject": "[Intel-wired-lan] [PATCH net-next] ice: Fix error return code in\n\tice_init_hw()",
        "X-BeenThere": "intel-wired-lan@osuosl.org",
        "X-Mailman-Version": "2.1.24",
        "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>",
        "Cc": "intel-wired-lan@lists.osuosl.org, kernel-janitors@vger.kernel.org,\n\tWei Yongjun <weiyongjun1@huawei.com>, netdev@vger.kernel.org",
        "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": "Fix to return error code ICE_ERR_NO_MEMORY from the alloc error\nhandling case instead of 0, as done elsewhere in this function.\n\nFixes: dc49c7723676 (\"ice: Get MAC/PHY/link info and scheduler topology\")\nSigned-off-by: Wei Yongjun <weiyongjun1@huawei.com>\n---\n drivers/net/ethernet/intel/ice/ice_common.c | 4 +++-\n 1 file changed, 3 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/drivers/net/ethernet/intel/ice/ice_common.c b/drivers/net/ethernet/intel/ice/ice_common.c\nindex 385f5d4..21977ec 100644\n--- a/drivers/net/ethernet/intel/ice/ice_common.c\n+++ b/drivers/net/ethernet/intel/ice/ice_common.c\n@@ -468,8 +468,10 @@ enum ice_status ice_init_hw(struct ice_hw *hw)\n \tmac_buf_len = sizeof(struct ice_aqc_manage_mac_read_resp);\n \tmac_buf = devm_kzalloc(ice_hw_to_dev(hw), mac_buf_len, GFP_KERNEL);\n \n-\tif (!mac_buf)\n+\tif (!mac_buf) {\n+\t\tstatus = ICE_ERR_NO_MEMORY;\n \t\tgoto err_unroll_fltr_mgmt_struct;\n+\t}\n \n \tstatus = ice_aq_manage_mac_read(hw, mac_buf, mac_buf_len, NULL);\n \tdevm_kfree(ice_hw_to_dev(hw), mac_buf);\n",
    "prefixes": [
        "net-next"
    ]
}