get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2196276,
    "url": "http://patchwork.ozlabs.org/api/patches/2196276/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260213100647.432974-2-dtalexundeer@yandex-team.ru/",
    "project": {
        "id": 14,
        "url": "http://patchwork.ozlabs.org/api/projects/14/?format=api",
        "name": "QEMU Development",
        "link_name": "qemu-devel",
        "list_id": "qemu-devel.nongnu.org",
        "list_email": "qemu-devel@nongnu.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20260213100647.432974-2-dtalexundeer@yandex-team.ru>",
    "list_archive_url": null,
    "date": "2026-02-13T10:06:49",
    "name": "[1/1] vhost: fix vhost_inflight_buffer_pre_load",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "e5529938254b74d7f60cb4e1a3f4aef4b74d50c4",
    "submitter": {
        "id": 90655,
        "url": "http://patchwork.ozlabs.org/api/people/90655/?format=api",
        "name": "Alexandr Moshkov",
        "email": "dtalexundeer@yandex-team.ru"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260213100647.432974-2-dtalexundeer@yandex-team.ru/mbox/",
    "series": [
        {
            "id": 492073,
            "url": "http://patchwork.ozlabs.org/api/series/492073/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=492073",
            "date": "2026-02-13T10:06:47",
            "name": "vhost: fix vhost_inflight_buffer_pre_load",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/492073/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2196276/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2196276/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": "patchwork-incoming@legolas.ozlabs.org",
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=yandex-team.ru header.i=@yandex-team.ru\n header.a=rsa-sha256 header.s=default header.b=cQRMgp1+;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org\n (client-ip=209.51.188.17; helo=lists.gnu.org;\n envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n receiver=patchwork.ozlabs.org)",
            "mail-nwsmtp-smtp-corp-main-34.sas.yp-c.yandex.net;\n dkim=pass header.i=@yandex-team.ru"
        ],
        "Received": [
            "from lists.gnu.org (lists.gnu.org [209.51.188.17])\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 4fC7Br1sbDz1xxM\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 13 Feb 2026 21:07:32 +1100 (AEDT)",
            "from localhost ([::1] helo=lists1p.gnu.org)\n\tby lists.gnu.org with esmtp (Exim 4.90_1)\n\t(envelope-from <qemu-devel-bounces@nongnu.org>)\n\tid 1vqq52-0000MF-K4; Fri, 13 Feb 2026 05:07:20 -0500",
            "from eggs.gnu.org ([2001:470:142:3::10])\n by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <dtalexundeer@yandex-team.ru>)\n id 1vqq50-0000Gs-MI\n for qemu-devel@nongnu.org; Fri, 13 Feb 2026 05:07:18 -0500",
            "from forwardcorp1b.mail.yandex.net ([178.154.239.136])\n by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <dtalexundeer@yandex-team.ru>)\n id 1vqq4y-0002l2-Tm\n for qemu-devel@nongnu.org; Fri, 13 Feb 2026 05:07:18 -0500",
            "from mail-nwsmtp-smtp-corp-main-34.sas.yp-c.yandex.net\n (mail-nwsmtp-smtp-corp-main-34.sas.yp-c.yandex.net\n [IPv6:2a02:6b8:c24:fa2:0:640:41ee:0])\n by forwardcorp1b.mail.yandex.net (Yandex) with ESMTPS id 474EC80866;\n Fri, 13 Feb 2026 13:07:14 +0300 (MSK)",
            "from dtalexundeer-nx.yandex-team.ru (unknown\n [2a02:6bf:8080:d48::1:1c])\n by mail-nwsmtp-smtp-corp-main-34.sas.yp-c.yandex.net (smtpcorp/Yandex) with\n ESMTPSA id s6SruK1AHuQ0-67PcUodW; Fri, 13 Feb 2026 13:07:13 +0300"
        ],
        "Precedence": "bulk",
        "X-Yandex-Fwd": "1",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex-team.ru;\n s=default; t=1770977233;\n bh=fCvYt1W4RO4KQUCccROn9TPj2OVobPXymgDkviTn1YY=;\n h=Message-Id:Date:In-Reply-To:Cc:Subject:References:To:From;\n b=cQRMgp1+HiHXQ1ZiMVXH726y6W8s6j2MRTkz3KYc6hq94j1AF2l7a+Y7gY7c+Vl6Y\n PhLdq+0bTpzHTlPDXwqbnY4nrIcMZqRrt0XQTJ6YS7+n8Yk/nRbr52rBcpSU8BHGbo\n OCe3OEjpWiJn0p4euZCZjMe5S7DiKzCUaaPtCbMs=",
        "From": "Alexandr Moshkov <dtalexundeer@yandex-team.ru>",
        "To": "qemu-devel@nongnu.org",
        "Cc": "\"Michael S. Tsirkin\" <mst@redhat.com>,\n Stefano Garzarella <sgarzare@redhat.com>,\n \"yc-core @ yandex-team . ru\" <yc-core@yandex-team.ru>,\n Alexandr Moshkov <dtalexundeer@yandex-team.ru>",
        "Subject": "[PATCH 1/1] vhost: fix vhost_inflight_buffer_pre_load",
        "Date": "Fri, 13 Feb 2026 15:06:49 +0500",
        "Message-Id": "<20260213100647.432974-2-dtalexundeer@yandex-team.ru>",
        "X-Mailer": "git-send-email 2.34.1",
        "In-Reply-To": "<20260213100647.432974-1-dtalexundeer@yandex-team.ru>",
        "References": "<20260213100647.432974-1-dtalexundeer@yandex-team.ru>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Received-SPF": "pass client-ip=178.154.239.136;\n envelope-from=dtalexundeer@yandex-team.ru; helo=forwardcorp1b.mail.yandex.net",
        "X-Spam_score_int": "-20",
        "X-Spam_score": "-2.1",
        "X-Spam_bar": "--",
        "X-Spam_report": "(-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,\n DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,\n RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001,\n SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no",
        "X-Spam_action": "no action",
        "X-BeenThere": "qemu-devel@nongnu.org",
        "X-Mailman-Version": "2.1.29",
        "List-Id": "qemu development <qemu-devel.nongnu.org>",
        "List-Unsubscribe": "<https://lists.nongnu.org/mailman/options/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>",
        "List-Archive": "<https://lists.nongnu.org/archive/html/qemu-devel>",
        "List-Post": "<mailto:qemu-devel@nongnu.org>",
        "List-Help": "<mailto:qemu-devel-request@nongnu.org?subject=help>",
        "List-Subscribe": "<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=subscribe>",
        "Errors-To": "qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org",
        "Sender": "qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org"
    },
    "content": "While I was rebasing my series about inflight migration, I missed a\nsmall issue in vhost_inflight_buffer_preload in\n\n3a80ff0 (\"vhost: add vmstate for inflight region with inner buffer\")\n\n* return wrong type in function\n* missed ERRP_GUARD\n\nso fixed it in this patch.\n\nSigned-off-by: Alexandr Moshkov <dtalexundeer@yandex-team.ru>\n---\n hw/virtio/vhost.c | 3 ++-\n 1 file changed, 2 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/hw/virtio/vhost.c b/hw/virtio/vhost.c\nindex 52801c1796..56eb1c4a02 100644\n--- a/hw/virtio/vhost.c\n+++ b/hw/virtio/vhost.c\n@@ -1920,6 +1920,7 @@ void vhost_get_features_ex(struct vhost_dev *hdev,\n \n static bool vhost_inflight_buffer_pre_load(void *opaque, Error **errp)\n {\n+    ERRP_GUARD();\n     struct vhost_inflight *inflight = opaque;\n \n     int fd = -1;\n@@ -1927,7 +1928,7 @@ static bool vhost_inflight_buffer_pre_load(void *opaque, Error **errp)\n                                   F_SEAL_GROW | F_SEAL_SHRINK | F_SEAL_SEAL,\n                                   &fd, errp);\n     if (*errp) {\n-        return -ENOMEM;\n+        return false;\n     }\n \n     inflight->offset = 0;\n",
    "prefixes": [
        "1/1"
    ]
}