get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 131523,
    "url": "https://patches.dpdk.org/api/patches/131523/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20230918021130.192982-8-simei.su@intel.com/",
    "project": {
        "id": 1,
        "url": "https://patches.dpdk.org/api/projects/1/?format=api",
        "name": "DPDK",
        "link_name": "dpdk",
        "list_id": "dev.dpdk.org",
        "list_email": "dev@dpdk.org",
        "web_url": "http://core.dpdk.org",
        "scm_url": "git://dpdk.org/dpdk",
        "webscm_url": "http://git.dpdk.org/dpdk",
        "list_archive_url": "https://inbox.dpdk.org/dev",
        "list_archive_url_format": "https://inbox.dpdk.org/dev/{}",
        "commit_url_format": ""
    },
    "msgid": "<20230918021130.192982-8-simei.su@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20230918021130.192982-8-simei.su@intel.com",
    "date": "2023-09-18T02:11:19",
    "name": "[v4,07/18] common/idpf/base: add necessary check",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "cb0e5d92efc5cea69a4dc3adeb5e0b47e078ad06",
    "submitter": {
        "id": 1298,
        "url": "https://patches.dpdk.org/api/people/1298/?format=api",
        "name": "Simei Su",
        "email": "simei.su@intel.com"
    },
    "delegate": {
        "id": 1540,
        "url": "https://patches.dpdk.org/api/users/1540/?format=api",
        "username": "qzhan15",
        "first_name": "Qi",
        "last_name": "Zhang",
        "email": "qi.z.zhang@intel.com"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20230918021130.192982-8-simei.su@intel.com/mbox/",
    "series": [
        {
            "id": 29530,
            "url": "https://patches.dpdk.org/api/series/29530/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=29530",
            "date": "2023-09-18T02:11:12",
            "name": "update idpf base code",
            "version": 4,
            "mbox": "https://patches.dpdk.org/series/29530/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/131523/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/131523/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "Received": [
            "from mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 1B954425C9;\n\tMon, 18 Sep 2023 04:12:35 +0200 (CEST)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 0B765406BC;\n\tMon, 18 Sep 2023 04:12:27 +0200 (CEST)",
            "from mgamail.intel.com (mgamail.intel.com [192.55.52.151])\n by mails.dpdk.org (Postfix) with ESMTP id 6EC4D40263\n for <dev@dpdk.org>; Mon, 18 Sep 2023 04:12:24 +0200 (CEST)",
            "from fmsmga004.fm.intel.com ([10.253.24.48])\n by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 17 Sep 2023 19:11:23 -0700",
            "from dpdk-simei-icelake.sh.intel.com ([10.67.110.167])\n by fmsmga004.fm.intel.com with ESMTP; 17 Sep 2023 19:11:20 -0700"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1695003144; x=1726539144;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=CtDp3rMuh8tRasPi5IpP4X3nrcmn5KrvHqa5Em3P+iE=;\n b=DnvOffBiqtiKbI84vFA1qeIEbC39TLf8DKFD4z7rhYM7OEm4OAEvCGuB\n lEdwh/XWrUMDM6A735mKCMV0QfwRHs/IziHyYesemAND8XGIO7T7tvQam\n E0bbR2a6JrWYVwgqJF1G/zJTPYTfnlZ/+vdwfmgjRuNTgURn6tJu2r8yy\n eG6KVRCpeAH6uiodIuFSxbOlUBogM8q5FO5MeaxDMDIgGZvutL+gxIEof\n opEDcl9s3cjrH9KYpES6C0sDnFMUsgoXui88vb3ElzdP70NkmAFQ8g+G6\n HqTk1d4fSujus+vbq6obCBoqN5TdNUiZ3ktxGVbcA5RUu+l6cir5lv12a g==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6600,9927,10836\"; a=\"359801693\"",
            "E=Sophos;i=\"6.02,155,1688454000\"; d=\"scan'208\";a=\"359801693\"",
            "E=McAfee;i=\"6600,9927,10836\"; a=\"815846869\"",
            "E=Sophos;i=\"6.02,155,1688454000\"; d=\"scan'208\";a=\"815846869\""
        ],
        "X-ExtLoop1": "1",
        "From": "Simei Su <simei.su@intel.com>",
        "To": "jingjing.wu@intel.com,\n\tbeilei.xing@intel.com,\n\tqi.z.zhang@intel.com",
        "Cc": "dev@dpdk.org, wenjun1.wu@intel.com, mingxia.liu@intel.com,\n wenjing.qiao@intel.com, Simei Su <simei.su@intel.com>,\n Julianx Grajkowski <julianx.grajkowski@intel.com>",
        "Subject": "[PATCH v4 07/18] common/idpf/base: add necessary check",
        "Date": "Mon, 18 Sep 2023 10:11:19 +0800",
        "Message-Id": "<20230918021130.192982-8-simei.su@intel.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<20230918021130.192982-1-simei.su@intel.com>",
        "References": "<20230915021730.2681882-1-simei.su@intel.com>\n <20230918021130.192982-1-simei.su@intel.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org"
    },
    "content": "Add necessary check for payload and message buffer.\n\nSigned-off-by: Julianx Grajkowski <julianx.grajkowski@intel.com>\nSigned-off-by: Simei Su <simei.su@intel.com>\nAcked-by: Beilei Xing <beilei.xing@intel.com>\n---\n .mailmap                               | 1 +\n drivers/common/idpf/base/idpf_common.c | 6 ++++--\n 2 files changed, 5 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/.mailmap b/.mailmap\nindex 75d534c53d..23aed53102 100644\n--- a/.mailmap\n+++ b/.mailmap\n@@ -1644,3 +1644,4 @@ Zhenning Xiao <zhenning.xiao@intel.com>\n Josh Hay <joshua.a.hay@intel.com>\n Madhu Chittim <madhu.chittim@intel.com>\n Shailendra Bhatnagar <shailendra.bhatnagar@intel.com>\n+Julianx Grajkowski <julianx.grajkowski@intel.com>\ndiff --git a/drivers/common/idpf/base/idpf_common.c b/drivers/common/idpf/base/idpf_common.c\nindex fbf71416fd..9610916aa9 100644\n--- a/drivers/common/idpf/base/idpf_common.c\n+++ b/drivers/common/idpf/base/idpf_common.c\n@@ -239,8 +239,10 @@ int idpf_clean_arq_element(struct idpf_hw *hw,\n \te->desc.ret_val = msg.status;\n \te->desc.datalen = msg.data_len;\n \tif (msg.data_len > 0) {\n-\t\tif (!msg.ctx.indirect.payload)\n-\t\t\treturn -EINVAL;\n+\t\tif (!msg.ctx.indirect.payload || !msg.ctx.indirect.payload->va ||\n+\t\t    !e->msg_buf) {\n+\t\t\treturn -EFAULT;\n+\t\t}\n \t\te->buf_len = msg.data_len;\n \t\tmsg_data_len = msg.data_len;\n \t\tidpf_memcpy(e->msg_buf, msg.ctx.indirect.payload->va, msg_data_len,\n",
    "prefixes": [
        "v4",
        "07/18"
    ]
}