get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2220770,
    "url": "http://patchwork.ozlabs.org/api/1.1/patches/2220770/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/ubuntu-kernel/patch/20260408020030.247607-3-acelan.kao@canonical.com/",
    "project": {
        "id": 15,
        "url": "http://patchwork.ozlabs.org/api/1.1/projects/15/?format=api",
        "name": "Ubuntu Kernel",
        "link_name": "ubuntu-kernel",
        "list_id": "kernel-team.lists.ubuntu.com",
        "list_email": "kernel-team@lists.ubuntu.com",
        "web_url": null,
        "scm_url": null,
        "webscm_url": null
    },
    "msgid": "<20260408020030.247607-3-acelan.kao@canonical.com>",
    "date": "2026-04-08T02:00:30",
    "name": "[SRU,N,2/2] drm/amdgpu: Fix validating flush_gpu_tlb_pasid()",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "5e06d87dd33ab171e3d1b0b506c4dc720ff939ec",
    "submitter": {
        "id": 2976,
        "url": "http://patchwork.ozlabs.org/api/1.1/people/2976/?format=api",
        "name": "AceLan Kao",
        "email": "acelan.kao@canonical.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/ubuntu-kernel/patch/20260408020030.247607-3-acelan.kao@canonical.com/mbox/",
    "series": [
        {
            "id": 499057,
            "url": "http://patchwork.ozlabs.org/api/1.1/series/499057/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/ubuntu-kernel/list/?series=499057",
            "date": "2026-04-08T02:00:29",
            "name": "BUG: kernel NULL pointer dereference in amdgpu",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/499057/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2220770/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2220770/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "<kernel-team-bounces@lists.ubuntu.com>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": "patchwork-incoming@legolas.ozlabs.org",
        "Authentication-Results": [
            "legolas.ozlabs.org;\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=Rs9rgOTO;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com\n (client-ip=185.125.189.65; helo=lists.ubuntu.com;\n envelope-from=kernel-team-bounces@lists.ubuntu.com;\n receiver=patchwork.ozlabs.org)"
        ],
        "Received": [
            "from lists.ubuntu.com (lists.ubuntu.com [185.125.189.65])\n\t(using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fr5rN0jLXz1xv0\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 08 Apr 2026 12:00:51 +1000 (AEST)",
            "from localhost ([127.0.0.1] helo=lists.ubuntu.com)\n\tby lists.ubuntu.com with esmtp (Exim 4.86_2)\n\t(envelope-from <kernel-team-bounces@lists.ubuntu.com>)\n\tid 1wAIDl-0005s8-KG; Wed, 08 Apr 2026 02:00:45 +0000",
            "from mail-qk1-f174.google.com ([209.85.222.174])\n by lists.ubuntu.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)\n (Exim 4.86_2) (envelope-from <acelan@gmail.com>) id 1wAIDj-0005qV-Tr\n for kernel-team@lists.ubuntu.com; Wed, 08 Apr 2026 02:00:44 +0000",
            "by mail-qk1-f174.google.com with SMTP id\n af79cd13be357-8d68bcf50fdso375541885a.2\n for <kernel-team@lists.ubuntu.com>; Tue, 07 Apr 2026 19:00:43 -0700 (PDT)",
            "from localhost (211-75-139-220.hinet-ip.hinet.net. [211.75.139.220])\n by smtp.gmail.com with ESMTPSA id\n af79cd13be357-8d2a5f48acasm1463313585a.21.2026.04.07.19.00.40\n for <kernel-team@lists.ubuntu.com>\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Tue, 07 Apr 2026 19:00:41 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=gmail.com; s=20251104; t=1775613642; x=1776218442; darn=lists.ubuntu.com;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:to:from:sender:from:to:cc:subject:date\n :message-id:reply-to;\n bh=kLRTPAlbT7CgeRyZLTJCHJhiV043WJXr9potlGeklP4=;\n b=Rs9rgOTOQpjfZoro3og2dnSUtAOBcCWtG0xfggZ3t/KIZQDXtgVFYxNJkeyGaGV0Iq\n V0opeyCuZH9mjA/LYUxvYtSbmvzaMx0U5XbQlXngxiYoETIWSHnP3kFJxYgjx1C1FzP+\n inmStoa2UuYlrJ55LOW+uv61+GweDZ9/OuFXrid04YiA2RXaZo+he/FbHwlos5EgdOLj\n Eel7nTkV/8o1QAego70WqxT1W2udEo3nubyNOFeGgqqs9WhVohUeBfgqwuM184PZiZt2\n fW3KcG4gKwDQtIWrQw9tC/5doqlKwaKZ6AeDRLOQUpEyKt65PGcgjTHzHWgNWFbDe5CC\n oeGg==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1775613642; x=1776218442;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:to:from:sender:x-gm-gg:x-gm-message-state\n :from:to:cc:subject:date:message-id:reply-to;\n bh=kLRTPAlbT7CgeRyZLTJCHJhiV043WJXr9potlGeklP4=;\n b=X0xuley7dP0urPoUSL/tErq9lq7ycCYGakGe++gUCJxub7PivLISbUt9z7+9ZmSsVi\n N5jQVzAxpOlPMDnDuSTbhVbUGj92r69msja3BuDq0SX5O9oNAyX0nOTot5I+U7AYrNty\n kNZP4EXO9zAhgqpc4F8HbzbvWVFxuhD8odTVZlyEzDRVQ+prZ2Cw08oEtPGaFPyagCP1\n LEb6I8MKtby09DVc9s+pvpPlAEI+Hxw5wett2K13BQBqmubxcO1cjUix2idgWN0Oad4i\n gfxVZ8RwI/R9fH8H7SdTTeejhUoQpKZgO8HeN7tSd3HOpUYBE1GLVf1hTI4q1C/y99rP\n kplQ==",
        "X-Gm-Message-State": "AOJu0YxBnAL3R19JXAWsOlWx+dCzT9jLVZgJOKrcKnQG0g2WnuSQn+VP\n aO5JMbakhq5l95btlqKsgxmFTNx597gkjAnMm5PX2477RJU3byTcOlk0U8Zchg==",
        "X-Gm-Gg": "AeBDies9VmcpCdoqFG4AFAcTeTn8o8xspiNE6YdTHgNao2U/5laRubdkD3l9euhQeQj\n 3jZ7oBleZ0sldOWTh68OHyLUDLoGmI6RFk5JSmoPgABJWmxq1N7uwiBJ5wS03vGfBfS0tz5cSOR\n BuuW2SO6Pqr83wgsEMX9R0MZ3S5tn4tZtyXAwe2XswkudvOF0C6L3FWR7U6627+gUpNrwZexVm3\n GsHft0HIGoAZdlAirjcQrZ98xruTKbWGBbWCOiUhZRTqbjv0S66Q16qh1GHDoCom227hzRAsRKL\n FD6S4t7oOOJ0DthRtfjUCx+1Pv97ruTsZYaEHjZmsYQMCpjBVRBDx/WzCyvGIPN+EwN5bA0NYLY\n v9j4397ZfAjMfeqB4ixxx878UYDrRPB2q3gY8SPi7txNM5/pLlaPGKNxKQfBJzJ0qcCy0yf1sBj\n yjcIA6nGbC8lDKV2OSuG8AHLsgqtN0GtMsFwOnGLGrEuOrkPBO1Tb4",
        "X-Received": "by 2002:a05:620a:1995:b0:8d9:bb6d:9e65 with SMTP id\n af79cd13be357-8d9bb6da2f2mr760176285a.1.1775613641797;\n Tue, 07 Apr 2026 19:00:41 -0700 (PDT)",
        "From": "AceLan Kao <acelan.kao@canonical.com>",
        "To": "kernel-team@lists.ubuntu.com",
        "Subject": "[SRU][N][PATCH 2/2] drm/amdgpu: Fix validating flush_gpu_tlb_pasid()",
        "Date": "Wed,  8 Apr 2026 10:00:30 +0800",
        "Message-ID": "<20260408020030.247607-3-acelan.kao@canonical.com>",
        "X-Mailer": "git-send-email 2.53.0",
        "In-Reply-To": "<20260408020030.247607-1-acelan.kao@canonical.com>",
        "References": "<20260408020030.247607-1-acelan.kao@canonical.com>",
        "MIME-Version": "1.0",
        "Received-SPF": "pass client-ip=209.85.222.174; envelope-from=acelan@gmail.com;\n helo=mail-qk1-f174.google.com",
        "X-BeenThere": "kernel-team@lists.ubuntu.com",
        "X-Mailman-Version": "2.1.20",
        "Precedence": "list",
        "List-Id": "Kernel team discussions <kernel-team.lists.ubuntu.com>",
        "List-Unsubscribe": "<https://lists.ubuntu.com/mailman/options/kernel-team>,\n <mailto:kernel-team-request@lists.ubuntu.com?subject=unsubscribe>",
        "List-Archive": "<https://lists.ubuntu.com/archives/kernel-team>",
        "List-Post": "<mailto:kernel-team@lists.ubuntu.com>",
        "List-Help": "<mailto:kernel-team-request@lists.ubuntu.com?subject=help>",
        "List-Subscribe": "<https://lists.ubuntu.com/mailman/listinfo/kernel-team>,\n <mailto:kernel-team-request@lists.ubuntu.com?subject=subscribe>",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "Content-Transfer-Encoding": "base64",
        "Errors-To": "kernel-team-bounces@lists.ubuntu.com",
        "Sender": "\"kernel-team\" <kernel-team-bounces@lists.ubuntu.com>"
    },
    "content": "From: Timur Kristóf <timur.kristof@gmail.com>\n\nBugLink: https://bugs.launchpad.net/bugs/2144577\n\nWhen a function holds a lock and we return without unlocking it,\nit deadlocks the kernel. We should always unlock before returning.\n\nThis commit fixes suspend/resume on SI.\nTested on two Tahiti GPUs: FirePro W9000 and R9 280X.\n\nFixes: f4db9913e4d3 (\"drm/amdgpu: validate the flush_gpu_tlb_pasid()\")\nReported-by: kernel test robot <lkp@intel.com>\nReported-by: Dan Carpenter <dan.carpenter@linaro.org>\nCloses: https://lore.kernel.org/r/202601190121.z9C0uml5-lkp@intel.com/\nSigned-off-by: Timur Kristóf <timur.kristof@gmail.com>\nSigned-off-by: Prike Liang <Prike.Liang@amd.com>\nReviewed-by: Prike Liang <Prike.Liang@amd.com>\nReviewed-by: Christian König <christian.koenig@amd.com>\nSigned-off-by: Alex Deucher <alexander.deucher@amd.com>\n(cherry picked from commit e3a6eff92bbd960b471966d9afccb4d584546d17)\nSigned-off-by: Chia-Lin Kao (AceLan) <acelan.kao@canonical.com>\n---\n drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c | 6 ++++--\n 1 file changed, 4 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c\nindex 7861b35db0029..5801feb7dada6 100644\n--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c\n+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c\n@@ -696,8 +696,10 @@ int amdgpu_gmc_flush_gpu_tlb_pasid(struct amdgpu_device *adev, uint16_t pasid,\n \n \tif (!adev->gmc.flush_pasid_uses_kiq || !ring->sched.ready) {\n \n-\t\tif (!adev->gmc.gmc_funcs->flush_gpu_tlb_pasid)\n-\t\t\treturn 0;\n+\t\tif (!adev->gmc.gmc_funcs->flush_gpu_tlb_pasid) {\n+\t\t\tr = 0;\n+\t\t\tgoto error_unlock_reset;\n+\t\t}\n \n \t\tif (adev->gmc.flush_tlb_needs_extra_type_2)\n \t\t\tadev->gmc.gmc_funcs->flush_gpu_tlb_pasid(adev, pasid,\n",
    "prefixes": [
        "SRU",
        "N",
        "2/2"
    ]
}