Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/47680/?format=api
http://patches.dpdk.org/api/patches/47680/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20181101141504.23491-1-roy.fan.zhang@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": "<20181101141504.23491-1-roy.fan.zhang@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20181101141504.23491-1-roy.fan.zhang@intel.com", "date": "2018-11-01T14:15:04", "name": "vhost/crypto: fix inferred misuse of enum", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "92f9b7b3540ba6f368bf119bc9e9820478fc015b", "submitter": { "id": 304, "url": "http://patches.dpdk.org/api/people/304/?format=api", "name": "Fan Zhang", "email": "roy.fan.zhang@intel.com" }, "delegate": { "id": 319, "url": "http://patches.dpdk.org/api/users/319/?format=api", "username": "fyigit", "first_name": "Ferruh", "last_name": "Yigit", "email": "ferruh.yigit@amd.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20181101141504.23491-1-roy.fan.zhang@intel.com/mbox/", "series": [ { "id": 2209, "url": "http://patches.dpdk.org/api/series/2209/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=2209", "date": "2018-11-01T14:15:04", "name": "vhost/crypto: fix inferred misuse of enum", "version": 1, "mbox": "http://patches.dpdk.org/series/2209/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/47680/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/47680/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 D87811B148;\n\tThu, 1 Nov 2018 15:15:09 +0100 (CET)", "from mga07.intel.com (mga07.intel.com [134.134.136.100])\n\tby dpdk.org (Postfix) with ESMTP id 78EFA683E;\n\tThu, 1 Nov 2018 15:15:07 +0100 (CET)", "from orsmga006.jf.intel.com ([10.7.209.51])\n\tby orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t01 Nov 2018 07:15:06 -0700", "from silpixa00398673.ir.intel.com (HELO\n\tsilpixa00398673.ger.corp.intel.com) ([10.237.223.54])\n\tby orsmga006.jf.intel.com with ESMTP; 01 Nov 2018 07:15:05 -0700" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.54,452,1534834800\"; d=\"scan'208\";a=\"87824738\"", "From": "Fan Zhang <roy.fan.zhang@intel.com>", "To": "dev@dpdk.org", "Cc": "maxime.coquelin@redhat.com,\n\tstable@dpdk.org", "Date": "Thu, 1 Nov 2018 14:15:04 +0000", "Message-Id": "<20181101141504.23491-1-roy.fan.zhang@intel.com>", "X-Mailer": "git-send-email 2.13.6", "Subject": "[dpdk-dev] [PATCH] vhost/crypto: fix inferred misuse of enum", "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://mails.dpdk.org/options/dev>,\n\t<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\t<mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "Fix inffered misuse of enum rte_crypto_cipher_algorithm and\nrte_crypto_auth_algorithm\n\nCoverity issue 277202\n\nFixes: e80a98708166 (\"vhost/crypto: add session message handler\")\nCc: stable@dpdk.org\n\nSigned-off-by: Fan Zhang <roy.fan.zhang@intel.com>\n---\n lib/librte_vhost/vhost_crypto.c | 6 +++---\n 1 file changed, 3 insertions(+), 3 deletions(-)", "diff": "diff --git a/lib/librte_vhost/vhost_crypto.c b/lib/librte_vhost/vhost_crypto.c\nindex 9811a232a..5472bead0 100644\n--- a/lib/librte_vhost/vhost_crypto.c\n+++ b/lib/librte_vhost/vhost_crypto.c\n@@ -238,7 +238,7 @@ transform_cipher_param(struct rte_crypto_sym_xform *xform,\n \t\treturn ret;\n \n \txform->type = RTE_CRYPTO_SYM_XFORM_CIPHER;\n-\txform->cipher.algo = (uint32_t)ret;\n+\txform->cipher.algo = (enum rte_crypto_cipher_algorithm)ret;\n \txform->cipher.key.length = param->cipher_key_len;\n \tif (xform->cipher.key.length > 0)\n \t\txform->cipher.key.data = param->cipher_key_buf;\n@@ -288,7 +288,7 @@ transform_chain_param(struct rte_crypto_sym_xform *xforms,\n \tif (unlikely(ret < 0))\n \t\treturn ret;\n \txform_cipher->type = RTE_CRYPTO_SYM_XFORM_CIPHER;\n-\txform_cipher->cipher.algo = (uint32_t)ret;\n+\txform_cipher->cipher.algo = (enum rte_crypto_cipher_algorithm)ret;\n \txform_cipher->cipher.key.length = param->cipher_key_len;\n \txform_cipher->cipher.key.data = param->cipher_key_buf;\n \tret = get_iv_len(xform_cipher->cipher.algo);\n@@ -302,7 +302,7 @@ transform_chain_param(struct rte_crypto_sym_xform *xforms,\n \tret = auth_algo_transform(param->hash_algo);\n \tif (unlikely(ret < 0))\n \t\treturn ret;\n-\txform_auth->auth.algo = (uint32_t)ret;\n+\txform_auth->auth.algo = (enum rte_crypto_auth_algorithm)ret;\n \txform_auth->auth.digest_length = param->digest_len;\n \txform_auth->auth.key.length = param->auth_key_len;\n \txform_auth->auth.key.data = param->auth_key_buf;\n", "prefixes": [] }{ "id": 47680, "url": "