get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2219566,
    "url": "http://patchwork.ozlabs.org/api/patches/2219566/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-cifs-client/patch/20260403131206.4716-2-24031212195@stu.xidian.edu.cn/",
    "project": {
        "id": 12,
        "url": "http://patchwork.ozlabs.org/api/projects/12/?format=api",
        "name": "Linux CIFS Client",
        "link_name": "linux-cifs-client",
        "list_id": "linux-cifs.vger.kernel.org",
        "list_email": "linux-cifs@vger.kernel.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20260403131206.4716-2-24031212195@stu.xidian.edu.cn>",
    "list_archive_url": null,
    "date": "2026-04-03T13:12:05",
    "name": "[v2,1/1] smb/client: avoid null-ptr-deref when tests fail in test_cmp_map()",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "974acea9ad0f2f96e62484fdf0b5b06c8ccdce40",
    "submitter": {
        "id": 93042,
        "url": "http://patchwork.ozlabs.org/api/people/93042/?format=api",
        "name": "dustball",
        "email": "24031212195@stu.xidian.edu.cn"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linux-cifs-client/patch/20260403131206.4716-2-24031212195@stu.xidian.edu.cn/mbox/",
    "series": [
        {
            "id": 498627,
            "url": "http://patchwork.ozlabs.org/api/series/498627/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-cifs-client/list/?series=498627",
            "date": "2026-04-03T13:12:04",
            "name": "smb/client: avoid null-ptr-deref when tests fail in test_cmp_map()",
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/498627/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2219566/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2219566/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "\n <linux-cifs+bounces-10655-incoming=patchwork.ozlabs.org@vger.kernel.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "linux-cifs@vger.kernel.org"
        ],
        "Delivered-To": "patchwork-incoming@legolas.ozlabs.org",
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=fail reason=\"key not found in DNS\" header.d=stu.xidian.edu.cn\n header.i=@stu.xidian.edu.cn header.a=rsa-sha256 header.s=dkim\n header.b=XhnjRuAe;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=104.64.211.4; helo=sin.lore.kernel.org;\n envelope-from=linux-cifs+bounces-10655-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)",
            "smtp.subspace.kernel.org;\n\tdkim=fail reason=\"key not found in DNS\" (0-bit key)\n header.d=stu.xidian.edu.cn header.i=@stu.xidian.edu.cn header.b=\"XhnjRuAe\"",
            "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=209.97.181.73",
            "smtp.subspace.kernel.org;\n dmarc=pass (p=quarantine dis=none) header.from=stu.xidian.edu.cn",
            "smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=stu.xidian.edu.cn"
        ],
        "Received": [
            "from sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fnK0C4kpsz1yDH\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 04 Apr 2026 00:12:59 +1100 (AEDT)",
            "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sin.lore.kernel.org (Postfix) with ESMTP id BE3E23012A96\n\tfor <incoming@patchwork.ozlabs.org>; Fri,  3 Apr 2026 13:12:56 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 94C9637F8BC;\n\tFri,  3 Apr 2026 13:12:53 +0000 (UTC)",
            "from zg8tmja5ljk3lje4ms43mwaa.icoremail.net\n (zg8tmja5ljk3lje4ms43mwaa.icoremail.net [209.97.181.73])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id CB4D61B4223\n\tfor <linux-cifs@vger.kernel.org>; Fri,  3 Apr 2026 13:12:50 +0000 (UTC)",
            "from Executor.localdomain (unknown [113.200.174.48])\n\tby hzbj-edu-front-3.icoremail.net (Coremail) with SMTP id\n BbQMCkDG6DKtvM9pl8MpAQ--.31539S3;\n\tFri, 03 Apr 2026 21:12:27 +0800 (CST)"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1775221973; cv=none;\n b=cHPGl+eBJOIjonw6NvWGrcidG934JlH1exx8cEhAofCzJwGp9/kO8VrpBSusRUg739uXWRC5IlcahKKmFT/FWlrhE4UIDL/H0u4v+e+EqD7mNyuwyclHOvRVst3hPMHAnInrrA0pTFcVqiBNXw/VgmXwrlKpsiSKa5l1Ruh15T4=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1775221973; c=relaxed/simple;\n\tbh=UnKYD5pjE/ju1IykVnEawDykDVkl1bsXYYIn9AgG6V0=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=JGp71z+gERBqy+94T2m0frs3WptkeTWJKkcQV4BmmsGOKN+Z+ZLXQEgQo9TTaFxlhVGBgtsiMajQnWFVMlp9Ha2VHooqDK/WZ0x7OvZ7jzqq7mhc0UITkauGPHn91/OSTqtquEz03wiqUJtOyYiw9edg9F2FNeHGEk1tDR2/7lA=",
        "ARC-Authentication-Results": "i=1; smtp.subspace.kernel.org;\n dmarc=pass (p=quarantine dis=none) header.from=stu.xidian.edu.cn;\n spf=pass smtp.mailfrom=stu.xidian.edu.cn;\n dkim=fail (0-bit key) header.d=stu.xidian.edu.cn header.i=@stu.xidian.edu.cn\n header.b=XhnjRuAe reason=\"key not found in DNS\";\n arc=none smtp.client-ip=209.97.181.73",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=stu.xidian.edu.cn; s=dkim; h=Received:From:To:Cc:Subject:Date:\n\tMessage-ID:In-Reply-To:References:MIME-Version:\n\tContent-Transfer-Encoding; bh=CRO8yr7TDYcNtRsjhgqtjtGK9vJ7PYbZcW\n\tMbP2Nqin4=; b=XhnjRuAeyOOBqd16QUNK0lF1lxMS6CUU9gAEQIP+VHWF/WSt1J\n\tZaNCfQsBYHpS0rblkwIEY3+DLPEc73P/Y1qWBFVQz06wTVB+8ndAk3RE2KHskK6J\n\tNhH7Qs7FH0TewdxEh/e4acmPqvcSkTIrruUlqNQxrxB/fZCbmEKkhZmBk=",
        "From": "dustball <24031212195@stu.xidian.edu.cn>",
        "To": "smfrench@gmail.com,\n\tlinkinjeon@kernel.org,\n\tpc@manguebit.org,\n\tronniesahlberg@gmail.com,\n\tsprasad@microsoft.com,\n\ttom@talpey.com,\n\tbharathsm@microsoft.com,\n\tsenozhatsky@chromium.org,\n\tdhowells@redhat.com,\n\tchenxiaosong@kylinos.cn,\n\tchenxiaosong@chenxiaosong.com",
        "Cc": "linux-cifs@vger.kernel.org,\n\tSunJianHao <24031212195@stu.xidian.edu.cn>",
        "Subject": "[PATCH v2 1/1] smb/client: avoid null-ptr-deref when tests fail in\n test_cmp_map()",
        "Date": "Fri,  3 Apr 2026 21:12:05 +0800",
        "Message-ID": "<20260403131206.4716-2-24031212195@stu.xidian.edu.cn>",
        "X-Mailer": "git-send-email 2.53.0",
        "In-Reply-To": "<20260403131206.4716-1-24031212195@stu.xidian.edu.cn>",
        "References": "<20260403131206.4716-1-24031212195@stu.xidian.edu.cn>",
        "Precedence": "bulk",
        "X-Mailing-List": "linux-cifs@vger.kernel.org",
        "List-Id": "<linux-cifs.vger.kernel.org>",
        "List-Subscribe": "<mailto:linux-cifs+subscribe@vger.kernel.org>",
        "List-Unsubscribe": "<mailto:linux-cifs+unsubscribe@vger.kernel.org>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-CM-TRANSID": "BbQMCkDG6DKtvM9pl8MpAQ--.31539S3",
        "X-Coremail-Antispam": "1UD129KBjvdXoWrurW7XrWDXw17JF48Kry8Krg_yoWkuFc_Ar\n\t1UKwn7ur1UCrnIk3W8Zwsaqr17Jw1UGaykZ3sa9F1YywnrAr9rt3y7Zw4ftws09wn09rW3\n\ttrnagr9akw17WjkaLaAFLSUrUUUUjb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT\n\t9fnUUIcSsGvfJTRUUUbpxFF20E14v26rWj6s0DM7CY07I20VC2zVCF04k26cxKx2IYs7xG\n\t6rWj6s0DM7CIcVAFz4kK6r1j6r18M28IrcIa0xkI8VA2jI8067AKxVWUGwA2048vs2IY02\n\t0Ec7CjxVAFwI0_Gr0_Xr1l8cAvFVAK0II2c7xJM28CjxkF64kEwVA0rcxSw2x7M28EF7xv\n\twVC0I7IYx2IY67AKxVW8JVW5JwA2z4x0Y4vE2Ix0cI8IcVCY1x0267AKxVW8JVWxJwA2z4\n\tx0Y4vEx4A2jsIE14v26r4UJVWxJr1l84ACjcxK6I8E87Iv6xkF7I0E14v26r4UJVWxJr1l\n\tnxkEFVAIw20F6cxK64vIFxWle2I262IYc4CY6c8Ij28IcVAaY2xG8wAqx4xG64xvF2IEw4\n\tCE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_Jr0_Jr4lYx0Ex4A2jsIE14v26r1j6r4UMcvj\n\teVCFs4IE7xkEbVWUJVW8JwACjcxG0xvY0x0EwIxGrwACjI8F5VA0II8E6IAqYI8I648v4I\n\t1lFIxGxcIEc7CjxVA2Y2ka0xkIwI1lc7CjxVAaw2AFwI0_Jw0_GFyl42xK82IYc2Ij64vI\n\tr41l4c8EcI0Ec7CjxVAaw2AFwI0_Jw0_GFyl4I8I3I0E4IkC6x0Yz7v_Jr0_Gr1lx2IqxV\n\tAqx4xG67AKxVWUJVWUGwC20s026x8GjcxK67AKxVWUGVWUWwC2zVAF1VAY17CE14v26r1q\n\t6r43MIIYrxkI7VAKI48JMIIF0xvE2Ix0cI8IcVAFwI0_Jr0_JF4lIxAIcVC0I7IYx2IY6x\n\tkF7I0E14v26r4j6F4UMIIF0xvE42xK8VAvwI8IcIk0rVWUJVWUCwCI42IY6I8E87Iv67AK\n\txVWUJVW8JwCI42IY6I8E87Iv6xkF7I0E14v26r4j6r4UJbIYCTnIWIevJa73UjIFyTuYvj\n\tfU8ID2UUUUU",
        "X-CM-SenderInfo": "ysuqjiysrsimuv6v33wo0lvxldqovvfxof0/1tbiAQULD2nOiFUSkQACs7"
    },
    "content": "From: SunJianHao <24031212195@stu.xidian.edu.cn>\n\nUse KUNIT_ASSERT_NOT_NULL() to abort the test cases on failure.\n\nReported-by: ChenXiaoSong <chenxiaosong@kylinos.cn>\nSigned-off-by: SunJianHao <24031212195@stu.xidian.edu.cn>\nReviewed-by: ChenXiaoSong <chenxiaosong@kylinos.cn>\n---\n fs/smb/client/smb2maperror_test.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)",
    "diff": "diff --git a/fs/smb/client/smb2maperror_test.c b/fs/smb/client/smb2maperror_test.c\nindex 8c47dea7a2c1..8c4f168c8e99 100644\n--- a/fs/smb/client/smb2maperror_test.c\n+++ b/fs/smb/client/smb2maperror_test.c\n@@ -21,7 +21,7 @@ test_cmp_map(struct kunit *test, const struct status_to_posix_error *expect)\n \tconst struct status_to_posix_error *result;\n \n \tresult = smb2_get_err_map_test(expect->smb2_status);\n-\tKUNIT_EXPECT_PTR_NE(test, NULL, result);\n+\tKUNIT_ASSERT_NOT_NULL(test, result);\n \tKUNIT_EXPECT_EQ(test, expect->smb2_status, result->smb2_status);\n \tKUNIT_EXPECT_EQ(test, expect->posix_error, result->posix_error);\n \tKUNIT_EXPECT_STREQ(test, expect->status_string, result->status_string);\n",
    "prefixes": [
        "v2",
        "1/1"
    ]
}