get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 965475,
    "url": "http://patchwork.ozlabs.org/api/patches/965475/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20180903144711.31585-5-jens.wiklander@linaro.org/",
    "project": {
        "id": 18,
        "url": "http://patchwork.ozlabs.org/api/projects/18/?format=api",
        "name": "U-Boot",
        "link_name": "uboot",
        "list_id": "u-boot.lists.denx.de",
        "list_email": "u-boot@lists.denx.de",
        "web_url": null,
        "scm_url": null,
        "webscm_url": null,
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20180903144711.31585-5-jens.wiklander@linaro.org>",
    "list_archive_url": null,
    "date": "2018-09-03T14:46:55",
    "name": "[U-Boot,v3,04/20] avb_verify: bugfix avb_ops_free() skipping free",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "d61407e622b11ede6712a0f517617a22f602542c",
    "submitter": {
        "id": 66201,
        "url": "http://patchwork.ozlabs.org/api/people/66201/?format=api",
        "name": "Jens Wiklander",
        "email": "jens.wiklander@linaro.org"
    },
    "delegate": {
        "id": 3651,
        "url": "http://patchwork.ozlabs.org/api/users/3651/?format=api",
        "username": "trini",
        "first_name": "Tom",
        "last_name": "Rini",
        "email": "trini@ti.com"
    },
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20180903144711.31585-5-jens.wiklander@linaro.org/mbox/",
    "series": [
        {
            "id": 63875,
            "url": "http://patchwork.ozlabs.org/api/series/63875/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=63875",
            "date": "2018-09-03T14:46:51",
            "name": "AVB using OP-TEE",
            "version": 3,
            "mbox": "http://patchwork.ozlabs.org/series/63875/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/965475/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/965475/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<u-boot-bounces@lists.denx.de>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": "patchwork-incoming@bilbo.ozlabs.org",
        "Authentication-Results": [
            "ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.denx.de\n\t(client-ip=81.169.180.215; helo=lists.denx.de;\n\tenvelope-from=u-boot-bounces@lists.denx.de;\n\treceiver=<UNKNOWN>)",
            "ozlabs.org;\n\tdmarc=fail (p=none dis=none) header.from=linaro.org",
            "ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n\tunprotected) header.d=linaro.org header.i=@linaro.org\n\theader.b=\"Je9z2NVv\"; dkim-atps=neutral"
        ],
        "Received": [
            "from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 423tCB44Gjz9s55\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue,  4 Sep 2018 00:49:10 +1000 (AEST)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid 5AB4FC21E75; Mon,  3 Sep 2018 14:48:58 +0000 (UTC)",
            "from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 1FACCC21ED5;\n\tMon,  3 Sep 2018 14:47:38 +0000 (UTC)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid D58C8C21EBE; Mon,  3 Sep 2018 14:47:31 +0000 (UTC)",
            "from mail-lf1-f67.google.com (mail-lf1-f67.google.com\n\t[209.85.167.67])\n\tby lists.denx.de (Postfix) with ESMTPS id 0F777C21EA2\n\tfor <u-boot@lists.denx.de>; Mon,  3 Sep 2018 14:47:26 +0000 (UTC)",
            "by mail-lf1-f67.google.com with SMTP id x26-v6so643323lfi.7\n\tfor <u-boot@lists.denx.de>; Mon, 03 Sep 2018 07:47:26 -0700 (PDT)",
            "from jax.ideon.se ([85.235.10.227])\n\tby smtp.gmail.com with ESMTPSA id\n\tw18-v6sm3343431ljd.73.2018.09.03.07.47.23\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tMon, 03 Sep 2018 07:47:23 -0700 (PDT)"
        ],
        "X-Spam-Checker-Version": "SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de",
        "X-Spam-Level": "",
        "X-Spam-Status": "No, score=0.0 required=5.0 tests=RCVD_IN_MSPIKE_H2,\n\tT_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=MvAIS+ckxlGzE9N89gxX0Q94LGWzUIHA2MGYL9i3jeA=;\n\tb=Je9z2NVvDh2mt84SXikl5j5E2SrdqMeMmeAQ662lxwe8sRcRmT7+lKr4CKWVSa59CG\n\t4/BeK6Z1LvrDJRJNAmJqtabIJDfyRwPFGpt8FdgYNkLc1hEIb1iEfCQtsSbNeMv7C0kx\n\t61idAR66GsCchUyJOS8EPAxnjjE/dBp8oIbpg=",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=MvAIS+ckxlGzE9N89gxX0Q94LGWzUIHA2MGYL9i3jeA=;\n\tb=ItL4/u3o6Ntyec+MQtYsocNm6sS08U++ODUAsGrpfcRBTjxtfKgPYPNqeeBbZ4eLqj\n\t5c5n6rw9B0C1zPSDaODqzWRW2BGcBnkEwVXb5JQM9LNpgY3o9Hm3Nw/H6ITKrvignUfh\n\tTc5IY9jNpkqGeCx5Z3gYZ3H049pTEEqn4VqIQEm2070zGBuE18ht2Fi/82PdupAWAAKR\n\tqAkYgxDWGG1vjIIYNQt8zY2InNl8H5StbB4mu54R8dsZPbPjbFW67A6fDM2bPC2YeSPr\n\t15WFR0pm2Y0zmhlYtkyR7wUmOls+xTTI4rAjDxdtjhypgiSmJJZFWaCyTOdTKxito2Vf\n\tosBA==",
        "X-Gm-Message-State": "APzg51DXTKD9IvwPbXeGq1PSuix+8aW/lNCd90RXCKpNRAyjBzKQ8b3o\n\tOpNu9wkgFCmwLl9LhCzU7I5CWVrOnps=",
        "X-Google-Smtp-Source": "ANB0VdZeKKjZ6ijDugXlUy5DQPBoFVo54hkDYmg1BSF+UOiZIkfCanPgT8Fd8YaX5juHpu+Y/i0z2g==",
        "X-Received": "by 2002:a19:a549:: with SMTP id\n\to70-v6mr14942043lfe.147.1535986044457; \n\tMon, 03 Sep 2018 07:47:24 -0700 (PDT)",
        "From": "Jens Wiklander <jens.wiklander@linaro.org>",
        "To": "u-boot@lists.denx.de",
        "Date": "Mon,  3 Sep 2018 16:46:55 +0200",
        "Message-Id": "<20180903144711.31585-5-jens.wiklander@linaro.org>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20180903144711.31585-1-jens.wiklander@linaro.org>",
        "References": "<20180903144711.31585-1-jens.wiklander@linaro.org>",
        "Cc": "Tom Rini <trini@konsulko.com>, Pierre Aubert <p.aubert@staubli.com>",
        "Subject": "[U-Boot] [PATCH v3 04/20] avb_verify: bugfix avb_ops_free()\n\tskipping free",
        "X-BeenThere": "u-boot@lists.denx.de",
        "X-Mailman-Version": "2.1.18",
        "Precedence": "list",
        "List-Id": "U-Boot discussion <u-boot.lists.denx.de>",
        "List-Unsubscribe": "<https://lists.denx.de/options/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=unsubscribe>",
        "List-Archive": "<http://lists.denx.de/pipermail/u-boot/>",
        "List-Post": "<mailto:u-boot@lists.denx.de>",
        "List-Help": "<mailto:u-boot-request@lists.denx.de?subject=help>",
        "List-Subscribe": "<https://lists.denx.de/listinfo/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=subscribe>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "Content-Transfer-Encoding": "base64",
        "Errors-To": "u-boot-bounces@lists.denx.de",
        "Sender": "\"U-Boot\" <u-boot-bounces@lists.denx.de>"
    },
    "content": "Before this patch avb_ops_free() was returning early if supplied \"ops\"\nargument was not NULL. This patch fixes this by inverting the condition.\n\nSigned-off-by: Jens Wiklander <jens.wiklander@linaro.org>\n---\n common/avb_verify.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)",
    "diff": "diff --git a/common/avb_verify.c b/common/avb_verify.c\nindex 20e35ade3029..3a1282a09204 100644\n--- a/common/avb_verify.c\n+++ b/common/avb_verify.c\n@@ -732,7 +732,7 @@ void avb_ops_free(AvbOps *ops)\n {\n \tstruct AvbOpsData *ops_data;\n \n-\tif (ops)\n+\tif (!ops)\n \t\treturn;\n \n \tops_data = ops->user_data;\n",
    "prefixes": [
        "U-Boot",
        "v3",
        "04/20"
    ]
}