get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 965490,
    "url": "http://patchwork.ozlabs.org/api/patches/965490/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20180903144711.31585-20-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-20-jens.wiklander@linaro.org>",
    "list_archive_url": null,
    "date": "2018-09-03T14:47:10",
    "name": "[U-Boot,v3,19/20] avb_verify: support sandbox configuration",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "1efff8d6260da8fe6e57d963963d871c8db3fe26",
    "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-20-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/965490/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/965490/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=\"RxnWZdrv\"; dkim-atps=neutral"
        ],
        "Received": [
            "from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 423tNq66Q1z9s4Z\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue,  4 Sep 2018 00:57:31 +1000 (AEST)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid 72E8FC21E85; Mon,  3 Sep 2018 14:55:51 +0000 (UTC)",
            "from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 45CCAC21F2A;\n\tMon,  3 Sep 2018 14:48:06 +0000 (UTC)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid 8EA8DC21F32; Mon,  3 Sep 2018 14:47:55 +0000 (UTC)",
            "from mail-lf1-f65.google.com (mail-lf1-f65.google.com\n\t[209.85.167.65])\n\tby lists.denx.de (Postfix) with ESMTPS id 88FE5C21EC2\n\tfor <u-boot@lists.denx.de>; Mon,  3 Sep 2018 14:47:48 +0000 (UTC)",
            "by mail-lf1-f65.google.com with SMTP id v77-v6so650346lfa.6\n\tfor <u-boot@lists.denx.de>; Mon, 03 Sep 2018 07:47:48 -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.45\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tMon, 03 Sep 2018 07:47:46 -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=+9FSrqWNL25MdQ9/5naOwcGq3yhUTI1TrXp3fXXUVJ0=;\n\tb=RxnWZdrvNuPSQ/nCdH5DcM92yH/qCtcWXmcnRisPjZKTA5Y3qw0nNHa6YMd76rpcEX\n\tlBpsoeBhMAyHMNwLAD7iqANBARxLWfWb5TFXRXoZL1+cMTHv1sjw2nvco3Dpw6AbWFhX\n\tDdq9K8FY7vYIwpLLcoG8ybBikfDe5xvG0pEyM=",
        "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=+9FSrqWNL25MdQ9/5naOwcGq3yhUTI1TrXp3fXXUVJ0=;\n\tb=AaOLxoDU0lM6Ak08GyR1yBjpaZZiO9SPIUmCrZTQChwpjiOb4Zp+K9e1Th8zpQjxkr\n\t9yK3c0FbSy03RGe0KtHeq1Muxsngkn8kO05a5SVuIaRQzrgPoizHMLhbG54xJj7gBjxx\n\tQfgd/ApcrjzV6bp2u0eMs60HXHmS9THUJAAbZ/tqtyFrj/lv0F1P2ZU6XrsX/qnx18XF\n\tdev9VJXHK0UGfAEYeTLQr24MD3f3WxV8TqpY+JYCC4Mt22fEnpRNQ8GuZQoNN6q6+2H7\n\tX3o4Bem8g3I0XLWCR308DhXngyKo+ezYdPL4OlXOtJqJXJ8fEWhAEWgiJ4vPXMRuWpEe\n\tj5Pw==",
        "X-Gm-Message-State": "APzg51AByOD8z8VRrzW3/pE7ZU9/kA9Z3jinqjHQJjwcGJ1UANcqHAri\n\tsf8dMQ5qUikJnejUzEw5TnXh1mFBXeA=",
        "X-Google-Smtp-Source": "ANB0Vda255/mLWrKJC0UH5QBc2DqudIF5D/1yRY7HeVYQPbKvrgBRI5cRCsXCw3fMYSji771Smz/9g==",
        "X-Received": "by 2002:a19:c5:: with SMTP id\n\t188-v6mr17565350lfa.45.1535986067739; \n\tMon, 03 Sep 2018 07:47:47 -0700 (PDT)",
        "From": "Jens Wiklander <jens.wiklander@linaro.org>",
        "To": "u-boot@lists.denx.de",
        "Date": "Mon,  3 Sep 2018 16:47:10 +0200",
        "Message-Id": "<20180903144711.31585-20-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 19/20] avb_verify: support sandbox configuration",
        "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": "With CONFIG_SANDBOX malloc a buffer in get_sector_buf() and return that\ninstead of returning CONFIG_FASTBOOT_BUF_ADDR since there's no such\nbuffer reserved.\n\nSigned-off-by: Jens Wiklander <jens.wiklander@linaro.org>\n---\n include/avb_verify.h | 9 +++++++++\n 1 file changed, 9 insertions(+)",
    "diff": "diff --git a/include/avb_verify.h b/include/avb_verify.h\nindex a532a2331aea..7b95409d247e 100644\n--- a/include/avb_verify.h\n+++ b/include/avb_verify.h\n@@ -76,7 +76,16 @@ static inline size_t get_sector_buf_size(void)\n \n static inline void *get_sector_buf(void)\n {\n+#ifdef CONFIG_SANDBOX\n+\tstatic void *p;\n+\n+\tif (!p)\n+\t\tp = avb_malloc_(get_sector_buf_size());\n+\n+\treturn p;\n+#else\n \treturn (void *)CONFIG_FASTBOOT_BUF_ADDR;\n+#endif\n }\n \n static inline bool is_buf_unaligned(void *buffer)\n",
    "prefixes": [
        "U-Boot",
        "v3",
        "19/20"
    ]
}