get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2119224,
    "url": "http://patchwork.ozlabs.org/api/patches/2119224/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20250805-octeontx2-v1-1-8b804a3760fb@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": "<20250805-octeontx2-v1-1-8b804a3760fb@linaro.org>",
    "list_archive_url": null,
    "date": "2025-08-05T14:53:34",
    "name": "[1/2] net: octeontx2: Restore default value for err",
    "commit_ref": "6bc6fec3b33f3c14f14493783db9258ac9938062",
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "a5641e603e61305d7227cbcbcfa0ff02e1f03036",
    "submitter": {
        "id": 88793,
        "url": "http://patchwork.ozlabs.org/api/people/88793/?format=api",
        "name": "Andrew Goodbody",
        "email": "andrew.goodbody@linaro.org"
    },
    "delegate": {
        "id": 157425,
        "url": "http://patchwork.ozlabs.org/api/users/157425/?format=api",
        "username": "jforissier",
        "first_name": "Jerome",
        "last_name": "Forissier",
        "email": "jerome.forissier@linaro.org"
    },
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20250805-octeontx2-v1-1-8b804a3760fb@linaro.org/mbox/",
    "series": [
        {
            "id": 467965,
            "url": "http://patchwork.ozlabs.org/api/series/467965/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=467965",
            "date": "2025-08-05T14:53:33",
            "name": "net: octeontx2: Fix two Smatch reports",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/467965/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2119224/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2119224/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<u-boot-bounces@lists.denx.de>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": "patchwork-incoming@legolas.ozlabs.org",
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256\n header.s=google header.b=TU1lN/A/;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de\n (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de;\n envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org)",
            "phobos.denx.de;\n dmarc=pass (p=none dis=none) header.from=linaro.org",
            "phobos.denx.de;\n spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de",
            "phobos.denx.de;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=linaro.org header.i=@linaro.org header.b=\"TU1lN/A/\";\n\tdkim-atps=neutral",
            "phobos.denx.de;\n dmarc=pass (p=none dis=none) header.from=linaro.org",
            "phobos.denx.de;\n spf=pass smtp.mailfrom=andrew.goodbody@linaro.org"
        ],
        "Received": [
            "from phobos.denx.de (phobos.denx.de\n [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange X25519 server-signature ECDSA (secp384r1))\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4bxGdj1f1zz1xv2\n\tfor <incoming@patchwork.ozlabs.org>; Wed,  6 Aug 2025 00:53:45 +1000 (AEST)",
            "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 9622583893;\n\tTue,  5 Aug 2025 16:53:42 +0200 (CEST)",
            "by phobos.denx.de (Postfix, from userid 109)\n id BAD368386F; Tue,  5 Aug 2025 16:53:39 +0200 (CEST)",
            "from mail-wm1-x332.google.com (mail-wm1-x332.google.com\n [IPv6:2a00:1450:4864:20::332])\n (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits))\n (No client certificate requested)\n by phobos.denx.de (Postfix) with ESMTPS id AE1DA83885\n for <u-boot@lists.denx.de>; Tue,  5 Aug 2025 16:53:37 +0200 (CEST)",
            "by mail-wm1-x332.google.com with SMTP id\n 5b1f17b1804b1-459d7726ee6so16523355e9.2\n for <u-boot@lists.denx.de>; Tue, 05 Aug 2025 07:53:37 -0700 (PDT)",
            "from artemis2.elfringham.co.uk\n ([2a0a:ef40:f9e:3c01:60bc:24e3:6dcd:9f35])\n by smtp.gmail.com with ESMTPSA id\n 5b1f17b1804b1-459de0d4cf1sm66075875e9.13.2025.08.05.07.53.36\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Tue, 05 Aug 2025 07:53:36 -0700 (PDT)"
        ],
        "X-Spam-Checker-Version": "SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de",
        "X-Spam-Level": "",
        "X-Spam-Status": "No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,\n DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED,\n SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=linaro.org; s=google; t=1754405617; x=1755010417; darn=lists.denx.de;\n h=cc:to:in-reply-to:references:message-id:content-transfer-encoding\n :mime-version:subject:date:from:from:to:cc:subject:date:message-id\n :reply-to; bh=t8I5Sdb1P2+z88zDD2MUOf5551LOVIXPJzpkRYZG8Ss=;\n b=TU1lN/A/lJtgX9jcIWO+lGUM3CptFwbjET5ll1p4D2+0XG0vS8VCpkX3wROs+ZeygK\n f8PbXTkWjNEnIGtYUxRi7rOefDdDsviXTcbw8CTNSlxEn36tLARnCUVVuERgdk+Mexgv\n /uGnPE+k6t5obsHqhRiPPhbdH3yripxSRPFT3lCtZHkhQ0Pr4FH+AyUAHPvs98s5i0O4\n UJY42jU7+WycLeZyghnJUw+kBeQjF2dglJlt6b1BXwLOtWiM9uLNuNNvRy2UK4NXVUeF\n o6krlSI8P4al9PJkue4D06ou55p+XbgPzy4yvI4769b82B1oDtBRwb4mOVErIWhIxxRC\n eI2Q==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20230601; t=1754405617; x=1755010417;\n h=cc:to:in-reply-to:references:message-id:content-transfer-encoding\n :mime-version:subject:date:from:x-gm-message-state:from:to:cc\n :subject:date:message-id:reply-to;\n bh=t8I5Sdb1P2+z88zDD2MUOf5551LOVIXPJzpkRYZG8Ss=;\n b=kIYbUFEu0pDSvF03AqGGwwK+Uwc1ZRrc5tOB6bvDLrzrh9HpPpsYCAP0FzL4Yd4Hdh\n nHMC31uNJiotiGpUJfLW+fE8wa3zjX0WCqGtExT7QhYrrtvK23e23zo4E/OXDcjIFQ7w\n PvRtFDQqwod2XM8ib9gcdtM9a6L9R7s3n997p07nGiPZ3058kQy841/GnPhqsQ0mexsW\n ccICxjR4gpDHsrT7Gjs9XtpIXZ7tOuTHgZrmaBLPgbveoAQMZCZQvUWtRA1EV4Q9p1e3\n zBE/FIoGrpKW+v7uLVHwHt48whrSthbzPqZxs9Q8kfAM/PnfrwstbX2u8TjnMhnnIpmK\n UwpA==",
        "X-Gm-Message-State": "AOJu0Yy2fwirVaBW/Ub4BLMB0g6yK5p3jttKNlHXDks8WGygiEzhR38K\n YGBCLcjMlQWtls9vb8pryMN3PI25HzUVDFrJOntBhKTS0vgKHawnKHeRdoYp/W6Z2eo=",
        "X-Gm-Gg": "ASbGncsJZXsA/dj7ghmUkQ/lvoiYn9ahzgbpYQW0lBGlSD3KYJXcGvOC4Suz1GhSIP6\n ncu8orKYxv2RKIHDvPL5FajlXaZU02gvnYLVE8ek+3kk568QQj1P+yP+LcY1WudgewkBFcLZzgr\n S5+JjfsADbdNFlNfuVRymkC0z60Zzt0+7cBs6imQ75jHL4tlWWSbKPPBdxMr+iPl7OitLwLamVf\n 4z5c/ke3MvP/uy+KR99iir0MKy8CjCPLa3/BJ/P5jseQvsn79nxucCHZ1aqXAe+9hXkakKkU4Ed\n 1RbuOrhlYhLVOJWOwHqxpP/yTOht+h7lc6J5x1BZoZeT4wq2dTzN76vv7buzoDCbSlriXbagN5n\n SxwwtNWE6et6uHl7yH6p+8jLAFjf5hYcfawX8qyk8X+olPNR3GNk=",
        "X-Google-Smtp-Source": "\n AGHT+IGos7fo7iUaXXqBYv4UBfn/2E1tec437Szq6Sg8xAMIY7nxUbpbMg6C5UZrgct3KBuUD3NkgA==",
        "X-Received": "by 2002:a05:600c:3b08:b0:459:dde3:1a37 with SMTP id\n 5b1f17b1804b1-459dde31e84mr47273455e9.25.1754405617076;\n Tue, 05 Aug 2025 07:53:37 -0700 (PDT)",
        "From": "Andrew Goodbody <andrew.goodbody@linaro.org>",
        "Date": "Tue, 05 Aug 2025 15:53:34 +0100",
        "Subject": "[PATCH 1/2] net: octeontx2: Restore default value for err",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "Content-Transfer-Encoding": "7bit",
        "Message-Id": "<20250805-octeontx2-v1-1-8b804a3760fb@linaro.org>",
        "References": "<20250805-octeontx2-v1-0-8b804a3760fb@linaro.org>",
        "In-Reply-To": "<20250805-octeontx2-v1-0-8b804a3760fb@linaro.org>",
        "To": "Joe Hershberger <joe.hershberger@ni.com>,\n Ramon Fried <rfried.dev@gmail.com>, Tom Rini <trini@konsulko.com>",
        "Cc": "u-boot@lists.denx.de, Andrew Goodbody <andrew.goodbody@linaro.org>",
        "X-Mailer": "b4 0.12.0",
        "X-BeenThere": "u-boot@lists.denx.de",
        "X-Mailman-Version": "2.1.39",
        "Precedence": "list",
        "List-Id": "U-Boot discussion <u-boot.lists.denx.de>",
        "List-Unsubscribe": "<https://lists.denx.de/options/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=unsubscribe>",
        "List-Archive": "<https://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 <mailto:u-boot-request@lists.denx.de?subject=subscribe>",
        "Errors-To": "u-boot-bounces@lists.denx.de",
        "Sender": "\"U-Boot\" <u-boot-bounces@lists.denx.de>",
        "X-Virus-Scanned": "clamav-milter 0.103.8 at phobos.denx.de",
        "X-Virus-Status": "Clean"
    },
    "content": "In nix_lf_setup there is a default value assigned to err in case an\nerror is detected. However this default value will be overwritten in the\nfor loop so that later code does not return an error code from the\nfunction. Add a new assignment to restore err to the default error code.\n\nThis issue was found by Smatch.\n\nSigned-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>\n---\n drivers/net/octeontx2/nix.c | 2 ++\n 1 file changed, 2 insertions(+)",
    "diff": "diff --git a/drivers/net/octeontx2/nix.c b/drivers/net/octeontx2/nix.c\nindex f596b6bca87..87d1f7a5dbf 100644\n--- a/drivers/net/octeontx2/nix.c\n+++ b/drivers/net/octeontx2/nix.c\n@@ -298,6 +298,8 @@ int nix_lf_setup(struct nix *nix)\n \t\t\tgoto error;\n \t}\n \n+\terr = -1;\n+\n \t/* Alloc memory for Qints HW contexts */\n \tnix->qint_base = nix_memalloc(nix_af->qints, nix_af->qint_ctx_sz,\n \t\t\t\t      \"Qint CTX\");\n",
    "prefixes": [
        "1/2"
    ]
}