get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2228785,
    "url": "http://patchwork.ozlabs.org/api/1.1/patches/2228785/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-mtd/patch/20260427114750.2480900-3-fuchsfl@gmail.com/",
    "project": {
        "id": 3,
        "url": "http://patchwork.ozlabs.org/api/1.1/projects/3/?format=api",
        "name": "Linux MTD development",
        "link_name": "linux-mtd",
        "list_id": "linux-mtd.lists.infradead.org",
        "list_email": "linux-mtd@lists.infradead.org",
        "web_url": null,
        "scm_url": null,
        "webscm_url": null
    },
    "msgid": "<20260427114750.2480900-3-fuchsfl@gmail.com>",
    "date": "2026-04-27T11:47:49",
    "name": "[v2,2/3] mtd: maps: vmu-flash: fix fault in unaligned fixup",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "470f7f0d3d8dc1c57ae25d5e47dffd3058377f88",
    "submitter": {
        "id": 92066,
        "url": "http://patchwork.ozlabs.org/api/1.1/people/92066/?format=api",
        "name": "Florian Fuchs",
        "email": "fuchsfl@gmail.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linux-mtd/patch/20260427114750.2480900-3-fuchsfl@gmail.com/mbox/",
    "series": [
        {
            "id": 501632,
            "url": "http://patchwork.ozlabs.org/api/1.1/series/501632/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-mtd/list/?series=501632",
            "date": "2026-04-27T11:47:47",
            "name": "mtd: maps: vmu-flash: Fix build and runtime errors",
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/501632/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2228785/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2228785/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "\n <linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org>",
        "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 secure) header.d=lists.infradead.org header.i=@lists.infradead.org\n header.a=rsa-sha256 header.s=bombadil.20210309 header.b=a+egJ1BU;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=c+PfZUi4;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=none (no SPF record) smtp.mailfrom=lists.infradead.org\n (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org;\n envelope-from=linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org;\n receiver=patchwork.ozlabs.org)"
        ],
        "Received": [
            "from bombadil.infradead.org (bombadil.infradead.org\n [IPv6:2607:7c80:54:3::133])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g423548fTz1yJX\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 27 Apr 2026 21:51:29 +1000 (AEST)",
            "from localhost ([::1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux))\n\tid 1wHKUm-0000000GpQQ-10xP;\n\tMon, 27 Apr 2026 11:51:24 +0000",
            "from mail-wr1-x431.google.com ([2a00:1450:4864:20::431])\n\tby bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux))\n\tid 1wHKUh-0000000GpOS-2Oou\n\tfor linux-mtd@lists.infradead.org;\n\tMon, 27 Apr 2026 11:51:22 +0000",
            "by mail-wr1-x431.google.com with SMTP id\n ffacd0b85a97d-43d64313c39so7954902f8f.3\n        for <linux-mtd@lists.infradead.org>;\n Mon, 27 Apr 2026 04:51:19 -0700 (PDT)",
            "from localhost ([2a02:810d:4a94:b300:3c87:b0bc:8c35:1ba0])\n        by smtp.gmail.com with UTF8SMTPSA id\n ffacd0b85a97d-4412150a071sm43651490f8f.21.2026.04.27.04.51.16\n        (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);\n        Mon, 27 Apr 2026 04:51:17 -0700 (PDT)"
        ],
        "DKIM-Signature": [
            "v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=bombadil.20210309; h=Sender:\n\tContent-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post:\n\tList-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:\n\tMessage-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description:\n\tResent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:\n\tList-Owner; bh=+a74LREE1oNR02RO+iRUHQ8leGmb+to2ieC1iCGm5Ew=; b=a+egJ1BU76ap6n\n\tMdPCh4ZnRVWccvHg2MIiSpAo9W8xCJhYUvxxRwoUoQ7qpozgp99pyPi6IliMl3rbE4tVXpIK6/T3C\n\t43XmOauogMLP8C4GHRENPe3BzppsPsqcmQziLJEiE9xJPBmn/f/MpcpGtnFr4vYsCiSQCM2Auh09Q\n\tZn5J3aK6AdM3WsY7vgXsU7GfuDlygLsIvW+7mVgFFA6+skGEDGNtw0PGshI7yT0G85FRQDGd/BZcD\n\tSo43T1fGRdTlbu5h+P77t78Qz+JPe+DVJBjaulTftiyjaWIjALQ0M3d1SYeQq11WGM8cHq0Y0kHjd\n\tnd5YhtYxbuViO69U2M5w==;",
            "v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=gmail.com; s=20251104; t=1777290678; x=1777895478;\n darn=lists.infradead.org;\n        h=content-transfer-encoding:mime-version:references:in-reply-to\n         :message-id:date:subject:cc:to:from:from:to:cc:subject:date\n         :message-id:reply-to;\n        bh=B+Y2aORcPSf7njE0+UeLtYLV0kJ/K7uIhbGCNhCftsw=;\n        b=c+PfZUi4KIavABXhfZ8V8TNe5WRvlMBjPBxX2eoVurryzjPPZoR6Sqv7bo4mtpoe3d\n         eg1mr9e0iu4wcPGBAGOi7Oru5YUOOKzt4CfiVPRO7pL0iT6zkEj010ZrquCSQiHNBrgF\n         DE6H/D1YHoTLUtTCPP+Bj71DdkwJC82bgcSHOa0ifT6T3mLCZilKMdEglav9MlSoCVti\n         Gl4gAzz/mj/MMgWYUgGucUKvpsDBBa2HCOSeL5C8HpOJ36I6Y51zPgX6WsmWWL6ONc4K\n         cSDhdRMvq86281BkEIkNiW52PU0F4qiQIkDF7ogUG217kfUQxbcUmVnxMLksBZW+vIhA\n         4c9w=="
        ],
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=1e100.net; s=20251104; t=1777290678; x=1777895478;\n        h=content-transfer-encoding:mime-version:references:in-reply-to\n         :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from\n         :to:cc:subject:date:message-id:reply-to;\n        bh=B+Y2aORcPSf7njE0+UeLtYLV0kJ/K7uIhbGCNhCftsw=;\n        b=ed7Wo43xrSsEVm6YclYZxD+MKuYCWsSCnSJthPDn618vYmUphYuDSSV2R6DDfu6bPu\n         c34ESJr6bpBDrVafTDFZeTaF9/4K9tr2a60q/yvDXN1/x5FKv/T9VGvynTHaiW5wTa13\n         5X0RkfAd/itQy4q/wD5wdPk4+4ZBz9pRkT/jmAVyuSMlQ5P6s46viUcvVQ9sMUYcZRV6\n         5C5Yo+Jj1r2bROWrEV7QG5dYTMOsRi8w3H9ww9PePjXykQGgxNYF7wvCe6eRxCLJkYzM\n         JzGpTLyUT4qnAA8//3XumBv2/h8BW25h+RvxywVb/VPBqsImZ+ewAHcNJKqYYVxLvJgc\n         r6oA==",
        "X-Forwarded-Encrypted": "i=1;\n AFNElJ85Zq4jurdimVJIDK3OsE/SKmkDcaWJfRZCsNtf5gT0P+FepMLEMMpyMwB00VnpUtTU0Vb+uz3oLOw=@lists.infradead.org",
        "X-Gm-Message-State": "AOJu0YwiN0INbgIA4/Y4WREORX2tqhtbYYIbEMf6sSHUHVUFgihkzTn9\n\t5mBJc8VdHd6kAwCf8yA/aZ/xEN1k7WWG6lArNNzflvhsu0FPBZlwRqo=",
        "X-Gm-Gg": "AeBDievWECVvlR7xB903ggavlc8xtz5/LvSOgHu8/g3PcXUz+2f14x2CCZm23tvs+bu\n\tansBxTHe8QaNHvmnjdK9295OFUiF17xbxcH2pZua+Zq+nw7+HxPl61CqW3wT8lWxjDzaCXOwsos\n\tt7PJmNUBXNsH/FDMFL+W+gkNdfHkCmfSQw/fHLF6O3HkAlWa37Ms9mNA/FkkPrqMooszgYtbqxz\n\tierr0FOU4eO2v3Br6A7jOl+s5w3+5rERvJtsRDWmYOFHhHzDorEgA3EyPbNMhC6NXREPQopfq0c\n\tVxi7/YnveixbIammEzf/hB2VmafMF7/8rc33RR7oELBOHfhxmxaUMsQJXVRTkDrYu1H5HfX2+YG\n\txZ3dtpZ3n418FoH1mQPaqbd/KM46xvSDyzciYLKIFXRDOyuf6jqcw+NAMwgUkygeVOz1vszR6+x\n\tSecOowcVhoOIBD5zcgQ7/CB7lHvPIDAbEhdJg9H2HZwiHrWqgOQ1Xavkzu8+3S0dDeh2NSRsMXh\n\toNpHGAjZ2bE7rPyLH0f+DpPLZ2a/w==",
        "X-Received": "by 2002:a05:6000:2dc4:b0:441:37b5:fc04 with SMTP id\n ffacd0b85a97d-44137b5fc4amr15581103f8f.14.1777290677589;\n        Mon, 27 Apr 2026 04:51:17 -0700 (PDT)",
        "From": "Florian Fuchs <fuchsfl@gmail.com>",
        "To": "Miquel Raynal <miquel.raynal@bootlin.com>,\n\tRichard Weinberger <richard@nod.at>,\n\tVignesh Raghavendra <vigneshr@ti.com>,\n\tlinux-mtd@lists.infradead.org",
        "Cc": "linux-sh@vger.kernel.org,\n\tlinux-kernel@vger.kernel.org,\n\tRich Felker <dalias@libc.org>,\n\tJohn Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>,\n\tFlorian Fuchs <fuchsfl@gmail.com>,\n\tArtur Rojek <contact@artur-rojek.eu>",
        "Subject": "[PATCH v2 2/3] mtd: maps: vmu-flash: fix fault in unaligned fixup",
        "Date": "Mon, 27 Apr 2026 13:47:49 +0200",
        "Message-ID": "<20260427114750.2480900-3-fuchsfl@gmail.com>",
        "X-Mailer": "git-send-email 2.43.0",
        "In-Reply-To": "<20260427114750.2480900-1-fuchsfl@gmail.com>",
        "References": "<20260427114750.2480900-1-fuchsfl@gmail.com>",
        "MIME-Version": "1.0",
        "X-CRM114-Version": "20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ",
        "X-CRM114-CacheID": "sfid-20260427_045120_376789_0E159F61 ",
        "X-CRM114-Status": "GOOD (  11.34  )",
        "X-Spam-Score": "-2.1 (--)",
        "X-Spam-Report": "Spam detection software,\n running on the system \"bombadil.infradead.org\",\n has NOT identified this incoming email as spam.  The original\n message has been attached to this so you can view it or label\n similar future email.  If you have any questions, see\n the administrator of that system for details.\n Content preview:  Use kzalloc_obj() / kzalloc_objs() to allocate the memcard\n    structs,\n instead of kmalloc_obj() / kmalloc_objs() to prevent access to uninitialized\n    data. Fixes runtime error: Fault in unaligned fixup: 0000 [#1] at\n mtd_get_fact_prot_info.    \n Content analysis details:   (-2.1 points, 5.0 required)\n  pts rule name              description\n ---- ----------------------\n --------------------------------------------------\n -0.0 RCVD_IN_DNSWL_NONE     RBL: Sender listed at https://www.dnswl.org/, no\n                             trust\n                             [2a00:1450:4864:20:0:0:0:431 listed in]\n                             [list.dnswl.org]\n -0.0 SPF_PASS               SPF: sender matches SPF record\n  0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record\n -0.1 DKIM_VALID_EF          Message has a valid DKIM or DK signature from\n                             envelope-from domain\n -0.1 DKIM_VALID_AU          Message has a valid DKIM or DK signature from\n author's\n                             domain\n -0.1 DKIM_VALID             Message has at least one valid DKIM or DK\n signature\n  0.1 DKIM_SIGNED            Message has a DKIM or DK signature,\n not necessarily valid\n -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%\n                             [score: 0.0000]\n  0.0 FREEMAIL_FROM          Sender email is commonly abused enduser mail\n provider\n                             [fuchsfl(at)gmail.com]",
        "X-BeenThere": "linux-mtd@lists.infradead.org",
        "X-Mailman-Version": "2.1.34",
        "Precedence": "list",
        "List-Id": "Linux MTD discussion mailing list <linux-mtd.lists.infradead.org>",
        "List-Unsubscribe": "<http://lists.infradead.org/mailman/options/linux-mtd>,\n <mailto:linux-mtd-request@lists.infradead.org?subject=unsubscribe>",
        "List-Archive": "<http://lists.infradead.org/pipermail/linux-mtd/>",
        "List-Post": "<mailto:linux-mtd@lists.infradead.org>",
        "List-Help": "<mailto:linux-mtd-request@lists.infradead.org?subject=help>",
        "List-Subscribe": "<http://lists.infradead.org/mailman/listinfo/linux-mtd>,\n <mailto:linux-mtd-request@lists.infradead.org?subject=subscribe>",
        "Content-Type": "text/plain; charset=\"us-ascii\"",
        "Content-Transfer-Encoding": "7bit",
        "Sender": "\"linux-mtd\" <linux-mtd-bounces@lists.infradead.org>",
        "Errors-To": "linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org"
    },
    "content": "Use kzalloc_obj() / kzalloc_objs() to allocate the memcard structs,\ninstead of kmalloc_obj() / kmalloc_objs() to prevent access to\nuninitialized data.\n\nFixes runtime error: Fault in unaligned fixup: 0000 [#1] at\nmtd_get_fact_prot_info.\n\nSigned-off-by: Florian Fuchs <fuchsfl@gmail.com>\n---\nv1->v2: no functional change, just rebased.\n\nv1: https://lore.kernel.org/lkml/20251117224408.498449-3-fuchsfl@gmail.com/\n\n drivers/mtd/maps/vmu-flash.c | 6 +++---\n 1 file changed, 3 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/drivers/mtd/maps/vmu-flash.c b/drivers/mtd/maps/vmu-flash.c\nindex 75e06d249ce9..b76d0609d1b7 100644\n--- a/drivers/mtd/maps/vmu-flash.c\n+++ b/drivers/mtd/maps/vmu-flash.c\n@@ -609,7 +609,7 @@ static int vmu_connect(struct maple_device *mdev)\n \n \tbasic_flash_data = be32_to_cpu(mdev->devinfo.function_data[c - 1]);\n \n-\tcard = kmalloc_obj(struct memcard);\n+\tcard = kzalloc_obj(struct memcard);\n \tif (!card) {\n \t\terror = -ENOMEM;\n \t\tgoto fail_nomem;\n@@ -627,13 +627,13 @@ static int vmu_connect(struct maple_device *mdev)\n \t* Not sure there are actually any multi-partition devices in the\n \t* real world, but the hardware supports them, so, so will we\n \t*/\n-\tcard->parts = kmalloc_objs(struct vmupart, card->partitions);\n+\tcard->parts = kzalloc_objs(struct vmupart, card->partitions);\n \tif (!card->parts) {\n \t\terror = -ENOMEM;\n \t\tgoto fail_partitions;\n \t}\n \n-\tcard->mtd = kmalloc_objs(struct mtd_info, card->partitions);\n+\tcard->mtd = kzalloc_objs(struct mtd_info, card->partitions);\n \tif (!card->mtd) {\n \t\terror = -ENOMEM;\n \t\tgoto fail_mtd_info;\n",
    "prefixes": [
        "v2",
        "2/3"
    ]
}