get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 808083,
    "url": "http://patchwork.ozlabs.org/api/patches/808083/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/1504163595.4681.6.camel@hbabu-laptop/",
    "project": {
        "id": 2,
        "url": "http://patchwork.ozlabs.org/api/projects/2/?format=api",
        "name": "Linux PPC development",
        "link_name": "linuxppc-dev",
        "list_id": "linuxppc-dev.lists.ozlabs.org",
        "list_email": "linuxppc-dev@lists.ozlabs.org",
        "web_url": "https://github.com/linuxppc/wiki/wiki",
        "scm_url": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git",
        "webscm_url": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/",
        "list_archive_url": "https://lore.kernel.org/linuxppc-dev/",
        "list_archive_url_format": "https://lore.kernel.org/linuxppc-dev/{}/",
        "commit_url_format": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/commit/?id={}"
    },
    "msgid": "<1504163595.4681.6.camel@hbabu-laptop>",
    "list_archive_url": "https://lore.kernel.org/linuxppc-dev/1504163595.4681.6.camel@hbabu-laptop/",
    "date": "2017-08-31T07:13:15",
    "name": "[V4,3/7] crypto/nx: Create nx842_delete_coprocs function",
    "commit_ref": "1ee51b28ee6ad7919da4fbe9672263dd274dcbfe",
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "2bcb72ddacc5b6040f1fae1b179d22eef65472c3",
    "submitter": {
        "id": 12875,
        "url": "http://patchwork.ozlabs.org/api/people/12875/?format=api",
        "name": "Haren Myneni",
        "email": "haren@linux.vnet.ibm.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/1504163595.4681.6.camel@hbabu-laptop/mbox/",
    "series": [
        {
            "id": 757,
            "url": "http://patchwork.ozlabs.org/api/series/757/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/list/?series=757",
            "date": "2017-08-31T07:10:13",
            "name": "Enable NX 842 compression engine on Power9",
            "version": 4,
            "mbox": "http://patchwork.ozlabs.org/series/757/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/808083/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/808083/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org>",
        "X-Original-To": [
            "patchwork-incoming@ozlabs.org",
            "linuxppc-dev@lists.ozlabs.org"
        ],
        "Delivered-To": [
            "patchwork-incoming@ozlabs.org",
            "linuxppc-dev@lists.ozlabs.org"
        ],
        "Received": [
            "from lists.ozlabs.org (lists.ozlabs.org [103.22.144.68])\n\t(using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xjYbT5h2lz9s7c\n\tfor <patchwork-incoming@ozlabs.org>;\n\tThu, 31 Aug 2017 17:17:09 +1000 (AEST)",
            "from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 3xjYbT4s2ZzDqZ6\n\tfor <patchwork-incoming@ozlabs.org>;\n\tThu, 31 Aug 2017 17:17:09 +1000 (AEST)",
            "from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com\n\t[148.163.158.5])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby lists.ozlabs.org (Postfix) with ESMTPS id 3xjYWJ6SHLzDqYw\n\tfor <linuxppc-dev@lists.ozlabs.org>;\n\tThu, 31 Aug 2017 17:13:32 +1000 (AEST)",
            "from pps.filterd (m0098420.ppops.net [127.0.0.1])\n\tby mx0b-001b2d01.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id\n\tv7V79adQ046754\n\tfor <linuxppc-dev@lists.ozlabs.org>; Thu, 31 Aug 2017 03:13:30 -0400",
            "from e18.ny.us.ibm.com (e18.ny.us.ibm.com [129.33.205.208])\n\tby mx0b-001b2d01.pphosted.com with ESMTP id 2cpdd699tr-1\n\t(version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT)\n\tfor <linuxppc-dev@lists.ozlabs.org>; Thu, 31 Aug 2017 03:13:30 -0400",
            "from localhost\n\tby e18.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use\n\tOnly! Violators will be prosecuted\n\tfor <linuxppc-dev@lists.ozlabs.org> from <haren@linux.vnet.ibm.com>; \n\tThu, 31 Aug 2017 03:13:30 -0400",
            "from b01cxnp22034.gho.pok.ibm.com (9.57.198.24)\n\tby e18.ny.us.ibm.com (146.89.104.205) with IBM ESMTP SMTP Gateway:\n\tAuthorized Use Only! Violators will be prosecuted; \n\tThu, 31 Aug 2017 03:13:27 -0400",
            "from b01ledav004.gho.pok.ibm.com (b01ledav004.gho.pok.ibm.com\n\t[9.57.199.109])\n\tby b01cxnp22034.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP\n\tid v7V7DQ1f21954682; Thu, 31 Aug 2017 07:13:26 GMT",
            "from b01ledav004.gho.pok.ibm.com (unknown [127.0.0.1])\n\tby IMSVA (Postfix) with ESMTP id 76F6D112040;\n\tThu, 31 Aug 2017 03:13:12 -0400 (EDT)",
            "from [9.70.82.25] (unknown [9.70.82.25])\n\tby b01ledav004.gho.pok.ibm.com (Postfix) with ESMTP id 7C677112034;\n\tThu, 31 Aug 2017 03:13:11 -0400 (EDT)"
        ],
        "Subject": "[PATCH V4 3/7] crypto/nx: Create nx842_delete_coprocs function",
        "From": "Haren Myneni <haren@linux.vnet.ibm.com>",
        "To": "mpe@ellerman.id.au, herbert@gondor.apana.org.au",
        "Content-Type": "text/plain; charset=\"UTF-8\"",
        "Date": "Thu, 31 Aug 2017 00:13:15 -0700",
        "Mime-Version": "1.0",
        "X-Mailer": "Evolution 2.28.3 ",
        "Content-Transfer-Encoding": "7bit",
        "X-TM-AS-GCONF": "00",
        "x-cbid": "17083107-0044-0000-0000-00000385D39E",
        "X-IBM-SpamModules-Scores": "",
        "X-IBM-SpamModules-Versions": "BY=3.00007640; HX=3.00000241; KW=3.00000007;\n\tPH=3.00000004; SC=3.00000226; SDB=6.00910094; UDB=6.00456508;\n\tIPR=6.00690374; \n\tBA=6.00005562; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009;\n\tZB=6.00000000; \n\tZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00016938;\n\tXFM=3.00000015; UTC=2017-08-31 07:13:30",
        "X-IBM-AV-DETECTION": "SAVI=unused REMOTE=unused XFE=unused",
        "x-cbparentid": "17083107-0045-0000-0000-000007B3ECA8",
        "Message-Id": "<1504163595.4681.6.camel@hbabu-laptop>",
        "X-Proofpoint-Virus-Version": "vendor=fsecure engine=2.50.10432:, ,\n\tdefinitions=2017-08-31_02:, , signatures=0",
        "X-Proofpoint-Spam-Details": "rule=outbound_notspam policy=outbound score=0\n\tspamscore=0 suspectscore=0\n\tmalwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam\n\tadjust=0 reason=mlx scancount=1 engine=8.0.1-1707230000\n\tdefinitions=main-1708310109",
        "X-BeenThere": "linuxppc-dev@lists.ozlabs.org",
        "X-Mailman-Version": "2.1.23",
        "Precedence": "list",
        "List-Id": "Linux on PowerPC Developers Mail List\n\t<linuxppc-dev.lists.ozlabs.org>",
        "List-Unsubscribe": "<https://lists.ozlabs.org/options/linuxppc-dev>,\n\t<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=unsubscribe>",
        "List-Archive": "<http://lists.ozlabs.org/pipermail/linuxppc-dev/>",
        "List-Post": "<mailto:linuxppc-dev@lists.ozlabs.org>",
        "List-Help": "<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=help>",
        "List-Subscribe": "<https://lists.ozlabs.org/listinfo/linuxppc-dev>,\n\t<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=subscribe>",
        "Cc": "mikey@neuling.org, linuxram@us.ibm.com, npiggin@gmail.com,\n\tsuka@us.ibm.com, \n\tlinux-crypto@vger.kernel.org, linuxppc-dev@lists.ozlabs.org,\n\tddstreet@ieee.org",
        "Errors-To": "linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org",
        "Sender": "\"Linuxppc-dev\"\n\t<linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org>"
    },
    "content": "Move deleting coprocessors info upon exit or failure to\nnx842_delete_coprocs().\n\nSigned-off-by: Haren Myneni <haren@us.ibm.com>\n---\n drivers/crypto/nx/nx-842-powernv.c | 25 ++++++++++++-------------\n 1 file changed, 12 insertions(+), 13 deletions(-)",
    "diff": "diff --git a/drivers/crypto/nx/nx-842-powernv.c b/drivers/crypto/nx/nx-842-powernv.c\nindex 1bd19e03eb7d..67dc06f9b557 100644\n--- a/drivers/crypto/nx/nx-842-powernv.c\n+++ b/drivers/crypto/nx/nx-842-powernv.c\n@@ -593,6 +593,16 @@ static int __init nx842_powernv_probe(struct device_node *dn)\n \treturn 0;\n }\n \n+static void nx842_delete_coprocs(void)\n+{\n+\tstruct nx842_coproc *coproc, *n;\n+\n+\tlist_for_each_entry_safe(coproc, n, &nx842_coprocs, list) {\n+\t\tlist_del(&coproc->list);\n+\t\tkfree(coproc);\n+\t}\n+}\n+\n static struct nx842_constraints nx842_powernv_constraints = {\n \t.alignment =\tDDE_BUFFER_ALIGN,\n \t.multiple =\tDDE_BUFFER_LAST_MULT,\n@@ -652,13 +662,7 @@ static __init int nx842_powernv_init(void)\n \n \tret = crypto_register_alg(&nx842_powernv_alg);\n \tif (ret) {\n-\t\tstruct nx842_coproc *coproc, *n;\n-\n-\t\tlist_for_each_entry_safe(coproc, n, &nx842_coprocs, list) {\n-\t\t\tlist_del(&coproc->list);\n-\t\t\tkfree(coproc);\n-\t\t}\n-\n+\t\tnx842_delete_coprocs();\n \t\treturn ret;\n \t}\n \n@@ -668,13 +672,8 @@ module_init(nx842_powernv_init);\n \n static void __exit nx842_powernv_exit(void)\n {\n-\tstruct nx842_coproc *coproc, *n;\n-\n \tcrypto_unregister_alg(&nx842_powernv_alg);\n \n-\tlist_for_each_entry_safe(coproc, n, &nx842_coprocs, list) {\n-\t\tlist_del(&coproc->list);\n-\t\tkfree(coproc);\n-\t}\n+\tnx842_delete_coprocs();\n }\n module_exit(nx842_powernv_exit);\n",
    "prefixes": [
        "V4",
        "3/7"
    ]
}