get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2119211,
    "url": "http://patchwork.ozlabs.org/api/patches/2119211/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20250805-net_mvpp2-v1-2-624ef87cadb9@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-net_mvpp2-v1-2-624ef87cadb9@linaro.org>",
    "list_archive_url": null,
    "date": "2025-08-05T14:18:17",
    "name": "[2/4] net: mvpp2: Return -ENOMEM for failed alloc",
    "commit_ref": "6781b90f89b427ec9445c43f8102ebe0a4330e54",
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "fd9d83e2b5eb4bde0323839d9d32fccb6f6bfb9c",
    "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-net_mvpp2-v1-2-624ef87cadb9@linaro.org/mbox/",
    "series": [
        {
            "id": 467962,
            "url": "http://patchwork.ozlabs.org/api/series/467962/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=467962",
            "date": "2025-08-05T14:18:19",
            "name": "net: mvpp2: Fix some Smatch reported issues",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/467962/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2119211/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2119211/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=qZ1kLEKK;\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=\"qZ1kLEKK\";\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 4bxG1M5DVrz1xtN\n\tfor <incoming@patchwork.ozlabs.org>; Wed,  6 Aug 2025 00:25:43 +1000 (AEST)",
            "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id E477D83839;\n\tTue,  5 Aug 2025 16:25:39 +0200 (CEST)",
            "by phobos.denx.de (Postfix, from userid 109)\n id 0CDE0831E0; Tue,  5 Aug 2025 16:25:39 +0200 (CEST)",
            "from mail-lj1-x22d.google.com (mail-lj1-x22d.google.com\n [IPv6:2a00:1450:4864:20::22d])\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 B221A83855\n for <u-boot@lists.denx.de>; Tue,  5 Aug 2025 16:25:34 +0200 (CEST)",
            "by mail-lj1-x22d.google.com with SMTP id\n 38308e7fff4ca-32f1aaf0d60so55249611fa.1\n for <u-boot@lists.denx.de>; Tue, 05 Aug 2025 07:25:34 -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 ffacd0b85a97d-3b79c4534b3sm19307801f8f.47.2025.08.05.07.18.19\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Tue, 05 Aug 2025 07:18:19 -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=1754403934; x=1755008734; 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=h1u+iVVx7HItuT0LG3QzKJO4QU33BudNduVxwsThoek=;\n b=qZ1kLEKKpcMvqS1UX8mPoCM0bWC5Eo36MeJXdbz1mhvodvU4nkaBQ6DiQN99Wew4PR\n lWggUqCYN53FuhA/Izv6zgP65jlKVVim564MXqaJBcFpniz2HRCIeV56FXBojR6Ef+k9\n zEMAZQriJqijxmUijqkEteYBX3kjDa67j19IhVET/qX9K5L9l8+XT4yHhlGItYvl7Kgh\n 3D+YCjfc10tRzisU9CzMarlvpfL1Jb+ou9Fgj27SteXBmCPw8Ql9W370ZTa8bthdUUNn\n ghMhyQwq/yyMHg4l5qf3z0pfuYlJQ0E1Djfs2pYm/uqY83t+bpR7cm0EVZ7cKrXvgnGe\n AMzw==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20230601; t=1754403934; x=1755008734;\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=h1u+iVVx7HItuT0LG3QzKJO4QU33BudNduVxwsThoek=;\n b=NQ4JzgO1tDNZMabfi6RRjHkNLEhKiIKbl88v+xTuCdw3sS5+QHtgRhRFOG25QLF0bd\n rUlhVpSWRJPXY34T9/hjxoh0AOTpz0E7I2CKXcs8dacIAot9suOCs5IawxEQKWW42Ecx\n KupBAZIr0OPGCpiHNuxwX3qhhgvLNv7XVWU/6xALVexD1zYTG+3v0k2E4Dcmbhbjz4uu\n gdAIIzEpZn34g8Jk555wCQVWH55AP0lkLBbZQBONIzVsoWYavFneBs75sbE/U/WvumPF\n X/Q/1mouQgCnSUN+LrvwQBnEITyOZUfU9fJpsjNckWdnXPXoapU2AVUQXxOIhPzjxFXH\n a0wg==",
        "X-Gm-Message-State": "AOJu0Yx7dvRsREMGaQCBjMuVPjv5M14pMMQm1YryzZFYYFeaOHBha8C5\n K01U2gpWEVyCYV+4RoEUgwJKD2B3pxPikvV9U4Ax26QCuDcsjZF6kXfceUC1rggooFwYTCUYYpB\n A9A2O",
        "X-Gm-Gg": "ASbGncsILDUs3qZauT6kx1xbxG2sBMlZuBxWeR+Rv9W4zJwbHFC6McAwKuKLAfBBg7g\n bba/OLCda42lgKJhxazcsi7v4A107q5NXhzDklwdq6ml89DSV5U66GLaMaoq5E46V/KeH5vvaoe\n 6aCntSSv8Rcxj39670PcpturmXeUuo50uvjERluIU8TxdAd4Dn6NH9sW2mSPv86SvlcaU+xIGMQ\n FRxqSYw/zDMP1DdlNnwzv3TtsyWx24RwCqCjc0kSjGp8enINhnwecq834Juqz1oeGKaxZrkhz/7\n g+zx30zAsCX3/QS3UGpp2DaN6XFxFAyRIqxl1eiXJlsLceCkuVpKMgMJp1Kh3PjjSwKJpt8LXLY\n /vC4lHBLxVClxN30OplyhpFOMIhMqFfgQxwbyGPdX2NRo3AoaJzE=",
        "X-Google-Smtp-Source": "\n AGHT+IH4RNZozlF4vPYGNFrg38UYBJzoUox1w4czU4bmIPPqcJeYNW48zAR/ZNykDpm48EUHgLfGug==",
        "X-Received": "by 2002:a05:6000:2910:b0:3b3:9ca4:ac8e with SMTP id\n ffacd0b85a97d-3b8d94c37e5mr10772640f8f.44.1754403499736;\n Tue, 05 Aug 2025 07:18:19 -0700 (PDT)",
        "From": "Andrew Goodbody <andrew.goodbody@linaro.org>",
        "Date": "Tue, 05 Aug 2025 15:18:17 +0100",
        "Subject": "[PATCH 2/4] net: mvpp2: Return -ENOMEM for failed alloc",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "Content-Transfer-Encoding": "7bit",
        "Message-Id": "<20250805-net_mvpp2-v1-2-624ef87cadb9@linaro.org>",
        "References": "<20250805-net_mvpp2-v1-0-624ef87cadb9@linaro.org>",
        "In-Reply-To": "<20250805-net_mvpp2-v1-0-624ef87cadb9@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": "Instead of returning -1 on a failed alloc, return -ENOMEM.\n\nThis issue was found by Smatch.\n\nSigned-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>\n---\n drivers/net/mvpp2.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)",
    "diff": "diff --git a/drivers/net/mvpp2.c b/drivers/net/mvpp2.c\nindex c0328345973..b68d305a0dc 100644\n--- a/drivers/net/mvpp2.c\n+++ b/drivers/net/mvpp2.c\n@@ -2329,7 +2329,7 @@ static int mvpp2_prs_mac_da_accept(struct mvpp2 *priv, int port,\n \n \t\tpe = kzalloc(sizeof(*pe), GFP_KERNEL);\n \t\tif (!pe)\n-\t\t\treturn -1;\n+\t\t\treturn -ENOMEM;\n \t\tmvpp2_prs_tcam_lu_set(pe, MVPP2_PRS_LU_MAC);\n \t\tpe->index = tid;\n \n",
    "prefixes": [
        "2/4"
    ]
}