get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 1277567,
    "url": "http://patchwork.ozlabs.org/api/patches/1277567/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/20200427121228.12241-1-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": "<20200427121228.12241-1-weiyongjun1@huawei.com>",
    "list_archive_url": null,
    "date": "2020-04-27T12:12:28",
    "name": "[net-next] ice: Fix error return code in ice_add_prof()",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "4c9477573802b82c2dfc768b4a9c10dbb6eb6ab7",
    "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/20200427121228.12241-1-weiyongjun1@huawei.com/mbox/",
    "series": [
        {
            "id": 172932,
            "url": "http://patchwork.ozlabs.org/api/series/172932/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/list/?series=172932",
            "date": "2020-04-27T12:12:28",
            "name": "[net-next] ice: Fix error return code in ice_add_prof()",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/172932/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/1277567/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/1277567/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 spf=pass (sender SPF authorized) smtp.mailfrom=osuosl.org\n (client-ip=140.211.166.133; helo=hemlock.osuosl.org;\n envelope-from=intel-wired-lan-bounces@osuosl.org; receiver=<UNKNOWN>)",
            "ozlabs.org;\n dmarc=none (p=none dis=none) header.from=huawei.com"
        ],
        "Received": [
            "from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 499kCR1CW3z9sSK\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 27 Apr 2020 22:11:29 +1000 (AEST)",
            "from localhost (localhost [127.0.0.1])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id 5FBCF87D92;\n\tMon, 27 Apr 2020 12:11:27 +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 lnJctQjHsvC0; Mon, 27 Apr 2020 12:11:25 +0000 (UTC)",
            "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id BCBE787D8E;\n\tMon, 27 Apr 2020 12:11:25 +0000 (UTC)",
            "from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133])\n by ash.osuosl.org (Postfix) with ESMTP id 7673F1BF3AA\n for <intel-wired-lan@lists.osuosl.org>; Mon, 27 Apr 2020 12:11:24 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n by hemlock.osuosl.org (Postfix) with ESMTP id 7099087D8E\n for <intel-wired-lan@lists.osuosl.org>; Mon, 27 Apr 2020 12:11:24 +0000 (UTC)",
            "from hemlock.osuosl.org ([127.0.0.1])\n by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n with ESMTP id b7LLJil6cDgy for <intel-wired-lan@lists.osuosl.org>;\n Mon, 27 Apr 2020 12:11:22 +0000 (UTC)",
            "from huawei.com (szxga04-in.huawei.com [45.249.212.190])\n by hemlock.osuosl.org (Postfix) with ESMTPS id 6583487D8B\n for <intel-wired-lan@lists.osuosl.org>; Mon, 27 Apr 2020 12:11:22 +0000 (UTC)",
            "from DGGEMS404-HUB.china.huawei.com (unknown [172.30.72.60])\n by Forcepoint Email with ESMTP id 1CCCF8F3E1766AC1EC17;\n Mon, 27 Apr 2020 20:11:18 +0800 (CST)",
            "from localhost.localdomain.localdomain (10.175.113.25) by\n DGGEMS404-HUB.china.huawei.com (10.3.19.204) with Microsoft SMTP Server id\n 14.3.487.0; Mon, 27 Apr 2020 20:11: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>, Tony Nguyen\n <anthony.l.nguyen@intel.com>",
        "Date": "Mon, 27 Apr 2020 12:12:28 +0000",
        "Message-ID": "<20200427121228.12241-1-weiyongjun1@huawei.com>",
        "X-Mailer": "git-send-email 2.20.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 ice_add_prof()",
        "X-BeenThere": "intel-wired-lan@osuosl.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "Intel Wired Ethernet Linux Kernel Driver Development\n <intel-wired-lan.osuosl.org>",
        "List-Unsubscribe": "<https://lists.osuosl.org/mailman/options/intel-wired-lan>,\n <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 <mailto:intel-wired-lan-request@osuosl.org?subject=subscribe>",
        "Cc": "intel-wired-lan@lists.osuosl.org, kernel-janitors@vger.kernel.org,\n Wei 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 a error code from the error handling case\ninstead of 0, as done elsewhere in this function.\n\nFixes: 31ad4e4ee1e4 (\"ice: Allocate flow profile\")\nSigned-off-by: Wei Yongjun <weiyongjun1@huawei.com>\n---\n drivers/net/ethernet/intel/ice/ice_flex_pipe.c | 4 +++-\n 1 file changed, 3 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/drivers/net/ethernet/intel/ice/ice_flex_pipe.c b/drivers/net/ethernet/intel/ice/ice_flex_pipe.c\nindex 42bac3ec5526..e7a2671222d2 100644\n--- a/drivers/net/ethernet/intel/ice/ice_flex_pipe.c\n+++ b/drivers/net/ethernet/intel/ice/ice_flex_pipe.c\n@@ -2962,8 +2962,10 @@ ice_add_prof(struct ice_hw *hw, enum ice_block blk, u64 id, u8 ptypes[],\n \n \t/* add profile info */\n \tprof = devm_kzalloc(ice_hw_to_dev(hw), sizeof(*prof), GFP_KERNEL);\n-\tif (!prof)\n+\tif (!prof) {\n+\t\tstatus = ICE_ERR_NO_MEMORY;\n \t\tgoto err_ice_add_prof;\n+\t}\n \n \tprof->profile_cookie = id;\n \tprof->prof_id = prof_id;\n",
    "prefixes": [
        "net-next"
    ]
}