Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/35093/?format=api
http://patches.dpdk.org/api/patches/35093/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20180209170545.7428-1-tomaszx.kulasek@intel.com/", "project": { "id": 1, "url": "http://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": "<20180209170545.7428-1-tomaszx.kulasek@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20180209170545.7428-1-tomaszx.kulasek@intel.com", "date": "2018-02-09T17:05:45", "name": "[dpdk-dev,v2] vhost: fix check if cmsg is NULL", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "50e7862edfcec1eb7eaa1fd9fb728d2f195671aa", "submitter": { "id": 155, "url": "http://patches.dpdk.org/api/people/155/?format=api", "name": "Tomasz Kulasek", "email": "tomaszx.kulasek@intel.com" }, "delegate": { "id": 2642, "url": "http://patches.dpdk.org/api/users/2642/?format=api", "username": "mcoquelin", "first_name": "Maxime", "last_name": "Coquelin", "email": "maxime.coquelin@redhat.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20180209170545.7428-1-tomaszx.kulasek@intel.com/mbox/", "series": [], "comments": "http://patches.dpdk.org/api/patches/35093/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/35093/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@dpdk.org", "Delivered-To": "patchwork@dpdk.org", "Received": [ "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id B01491B798;\n\tFri, 9 Feb 2018 18:07:16 +0100 (CET)", "from mga05.intel.com (mga05.intel.com [192.55.52.43])\n\tby dpdk.org (Postfix) with ESMTP id 4689D1B6CE;\n\tFri, 9 Feb 2018 18:07:12 +0100 (CET)", "from fmsmga001.fm.intel.com ([10.253.24.23])\n\tby fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t09 Feb 2018 09:07:03 -0800", "from unknown (HELO Sent) ([10.103.103.74])\n\tby fmsmga001.fm.intel.com with SMTP; 09 Feb 2018 09:07:00 -0800", "by Sent (sSMTP sendmail emulation); Fri, 09 Feb 2018 18:05:56 +0100" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.46,483,1511856000\"; d=\"scan'208\";a=\"29523271\"", "From": "Tomasz Kulasek <tomaszx.kulasek@intel.com>", "To": "yliu@fridaylinux.org", "Cc": "dev@dpdk.org, jianfeng.tan@intel.com, stable@dpdk.org,\n\tPawel Wodkowski <pawelx.wodkowski@intel.com>", "Date": "Fri, 9 Feb 2018 18:05:45 +0100", "Message-Id": "<20180209170545.7428-1-tomaszx.kulasek@intel.com>", "X-Mailer": "git-send-email 2.12.3", "In-Reply-To": "<20180208170322.52568-1-tomaszx.kulasek@intel.com>", "References": "<20180208170322.52568-1-tomaszx.kulasek@intel.com>", "Subject": "[dpdk-dev] [PATCH v2] vhost: fix check if cmsg is NULL", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<https://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://dpdk.org/ml/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<https://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "Fixes: 8f972312b8f4 (\"vhost: support vhost-user\")\nCc: jianfeng.tan@intel.com\nCc: stable@dpdk.org\n\nSigned-off-by: Pawel Wodkowski <pawelx.wodkowski@intel.com>\nSigned-off-by: Tomasz Kulasek <tomaszx.kulasek@intel.com>\n---\nv2 changes:\n - Changed fixline to point right commit\n\n---\n lib/librte_vhost/socket.c | 5 +++++\n 1 file changed, 5 insertions(+)", "diff": "diff --git a/lib/librte_vhost/socket.c b/lib/librte_vhost/socket.c\nindex 83befdced..8fd47a4d8 100644\n--- a/lib/librte_vhost/socket.c\n+++ b/lib/librte_vhost/socket.c\n@@ -153,6 +153,11 @@ send_fd_message(int sockfd, char *buf, int buflen, int *fds, int fd_num)\n \t\tmsgh.msg_control = control;\n \t\tmsgh.msg_controllen = sizeof(control);\n \t\tcmsg = CMSG_FIRSTHDR(&msgh);\n+\t\tif (cmsg == NULL) {\n+\t\t\tRTE_LOG(ERR, VHOST_CONFIG, \"cmsg == NULL\\n\");\n+\t\t\terrno = EINVAL;\n+\t\t\treturn -1;\n+\t\t}\n \t\tcmsg->cmsg_len = CMSG_LEN(fdsize);\n \t\tcmsg->cmsg_level = SOL_SOCKET;\n \t\tcmsg->cmsg_type = SCM_RIGHTS;\n", "prefixes": [ "dpdk-dev", "v2" ] }{ "id": 35093, "url": "