From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-cys01nam02on0058.outbound.protection.outlook.com [104.47.37.58]) by dpdk.org (Postfix) with ESMTP id 4FE3BA568; Tue, 20 Feb 2018 18:17:17 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=igD7CSLDBPliCASLoctfLK2nWB07Zv5/AAVrOGuItwo=; b=JAkvBJIdh7amcD/QWGWNJSskjP63XArtIDo5CfPwL+h2XkgOoK7dwBMmWXIly3LKHBdNb6a3f2MQ1vtbALUUjBovK/bi9e9uH+MI13tuk+NTfaRlLnhjT2wVr/jq0SKUrSS8xl5Y9haEB3I3TlgUuZMT3CYmwcxBjZ44utY/kbo= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Santosh.Shukla@cavium.com; Received: from santosh-Latitude-5580.caveonetworks.com (103.76.56.167) by BLUPR0701MB1889.namprd07.prod.outlook.com (2a01:111:e400:5165::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.506.18; Tue, 20 Feb 2018 17:17:13 +0000 From: Santosh Shukla To: dev@dpdk.org Cc: jerin.jacob@caviumnetworks.com, Santosh Shukla , stable@dpdk.org Date: Tue, 20 Feb 2018 22:44:15 +0530 Message-Id: <1519146856-10748-1-git-send-email-santosh.shukla@caviumnetworks.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [103.76.56.167] X-ClientProxiedBy: PN1PR0101CA0030.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c00:c::16) To BLUPR0701MB1889.namprd07.prod.outlook.com (2a01:111:e400:5165::22) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ac74a6b9-9011-4478-689d-08d57885c96d X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(5600026)(4604075)(2017052603307)(7153060)(7193020); SRVR:BLUPR0701MB1889; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1889; 3:pub/iiDtnMhczUJGn5Re0YlW2+HncJ91O+JsGEJh6x97D4DCL6I3dV1+1VAGSpif2kaOqZxA615SEYBaEipDPAYsTD40YIPZt3tUQ8qRI4GkHcyAVx8+cgC3venbZObTHzy85ktt9kbO73XaQiISYooS1kkfxsLCkSJc/+25J0RPIoC5QYUxSjvehpWrM9yP7neo7vADgggPtN2N8SDg1pZdKpMXS0e51yPtLEvAcOIgnQPmTEJxnrRExx19SZ7I; 25:ehW72PzCBvJoyx8lOgXdbw9fO5Hrtc2x/kVy/F4L7x4EFemH+Xf1j3aiv215ewxOsZFnxofxl5uqM4DT+RjF+QrrWq5IuIY/F4fytnQtc6rNZmIwahUiGLseMXs/4zojFw/W5WdTa5ctK059YYpHnAJKY3vzoKr6/olsRyiTqfj0a7Z5+uvzZ4JFvUXqXLqqeqDdp0Rq0PZHDjB4PRgdgsQ8mYn+AdW0r7nADyrPC38xQwYdLP/OLfIZKe6uYZKd4eLMMCB7wCliWzPXur8KIM6Mpywt6x5ts+JZgLQRFJAvQS7Idt+6QPthsa4wePBQf3QYEPoNPn0HDX4vudVGTQ==; 31:fwf2iF9w7MdBlorufYgLokXj2fuZmeX+tiCT8VHEH+bLndztbbOC5f/IQmB52/+VVJb1o6X+fytzTOvG409DnDcuRl1YsfLqpp0jplGIUPqFomFvedvtZgtap2x3j6EWlN64Z2CklUPEr2PQ7MsafuWHoicuJj8gHxWJZ4EmrfYO4OW0PhfpiC80ainNSp/y6p13lHDYViSY3zmJVqRB5A9MvJ/xs9MsrK04xMqiEKk= X-MS-TrafficTypeDiagnostic: BLUPR0701MB1889: X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1889; 20:/lwYuFJzP9HbsOV7XdWEsJyL/bOdo2EB/O2q63V0VODTIlI+bslQEh+JJmQY/yPBS5xKFm+RawwW+izoA6DSQCcg8KlswkGkId6e0q92rHj/nHf5054R4OQG4xV4y603hWkXVvr8hwl8DdxTkTYQUf0FRCxqF/6HU28540P4sGcuA0MeIhFDs1EPvdPSghdG8Sntf7N0W/14Fc2VzO8D3pYwR1eXxPn0vKRE8v6hH6BV553tpl32pvYk0useMByh+gDwh3kE+UtNxFosxQO4yihuJiy0nW0reDQFIaxmlJw2mWheGE/8gfKlvWON9wpHMITRQWimARGa3vRYPUCZG0zgoQ5TrmLAEYMP9acrxt3aAvkJ8yQlmPLi7K0mWS1tJk93O1Js6p2icEvKyDBDn2/XJrWoZ+gVnaggVYE2qSoUjCp4hIAL6kRACZgnIo9FwRPiSBOu1Fb5wQGrdL4rJ9jBTwp4Tdpsz5RbTOOXZzNgIYxKyGbMazqTOM9mF+sBd89gxqOrzh2VgR/DeJKg0sWYve6OpE0OcxmzgTUFyZ+NJtn8cLWASxaBcENliHHTWrz4bacPqt4BHel0uOjblqj+Byymqt0Y/7PzsMAylAk=; 4:f7zyrImR7qlEtMWYp+DtWEZpuqNWQa0QBlAAKy+aXf5RCE7t/WlzLculSlkYplOoWVci3YPux21bPVrRmcOq9XpLiZ4LQZwUvdJ+RnjmeRSPGTWZmO7h9d4dpSfRikzffA08QmM/cigE4U027dqpq/7hpFvzqTr8o0vWwL9jfuO+VUzEFyD0Rq6GDYPjQAYDzIVXLgk5wwjh0sUQn5U6qKLxJZmbCwJ16XbunxfxJmwXOYBeiHSmx7Q7VnSzlpvy+3VYposh5mTPi6ourzt/DQ== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001056)(6040501)(2401047)(8121501046)(5005006)(93006095)(10201501046)(3231101)(944501161)(3002001)(6041288)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123562045)(20161123558120)(6072148)(201708071742011); SRVR:BLUPR0701MB1889; BCL:0; PCL:0; RULEID:; SRVR:BLUPR0701MB1889; X-Forefront-PRVS: 05891FB07F X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(366004)(346002)(39860400002)(39380400002)(396003)(376002)(199004)(189003)(53416004)(105586002)(305945005)(7736002)(97736004)(68736007)(6116002)(2351001)(3846002)(2361001)(106356001)(6506007)(59450400001)(386003)(48376002)(6486002)(50466002)(450100002)(4326008)(52116002)(51416003)(25786009)(47776003)(8936002)(66066001)(478600001)(50226002)(6512007)(81166006)(72206003)(81156014)(36756003)(8676002)(2906002)(26005)(69596002)(5660300001)(575784001)(6916009)(186003)(316002)(42882006)(16586007)(16526019)(53936002); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR0701MB1889; H:santosh-Latitude-5580.caveonetworks.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR0701MB1889; 23:HgUZ7M1uXf18CBDLr1Ua3Nz5Ur8ry8yZrUkAHDQ?= =?us-ascii?Q?mrzUwA+/a1nfQ0OioeV8wiXTWjq+IZdxW9Qn+SeTZDiHRwfnds+dAMIttDNS?= =?us-ascii?Q?/DhgkobybmgYskKAMiG2apJCoQQx/ANeeQ2wMwB5wnKDhe/N016Z8ziFsuR6?= =?us-ascii?Q?rMLbKVyZlAVP+pVQ4VacaM2n7KuQaP8uM3erD4vk3vU5D6f1apcmjb5MsesT?= =?us-ascii?Q?9ZVDfsmS1aszzPcZyf9TFVAgpKnm7id5qVJrIQos0B7x4zjHBFaGK8sDmaEs?= =?us-ascii?Q?8coN1HtK+aKEuV6dOXfO3oYRnYqqeS0eMmpTYWFq1MxY+IH/UTHTIKQWuk/2?= =?us-ascii?Q?4+hP0BEs3dd89NNf1ncJ62wxhjL2u2IP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; 6:+yaqPDoH3aL1EA0yKMN2TuDlix5RSIb3qc/xvKygBW+Gq0hLKGff44R9wCWtwCRUvTmPDPpHJ/4QdY4RcL4wd/CPWHmzX7154/KLznu6pXH9nh+SIx0HoJFp3/wvcjRiq6+MSM2VzKtzDJUFrRnZ2Ukns+zWSAXVAyWpgSaCOyuL3YZoFsdul55xbwXhjqpTNzaT0cDwu7oFgPlbbybiQBVDo9NbwiIw0hYigdciPQRWgPW2bB1GiXdzvj1I25h4O6w4OGJJhjL6NP5394/gkP/au7/NATQa3Zr3m4niJ3mM7SssgB1a5zIvCecCJBPRVz8UQpdp9pvuKwbcKIfTQg90/Z6bWzNUJCx1fR8XApE=; 5:dQKeh3EBA99K+p2VVCf8ElWVLrpkaVXPJY0BFdFbAfRSi4g6B4LhcWPtYptoPdL2fJjH3uh8kcflp5jpzpk1eznzKTRx1+ydWi7AYCx9lC7CuMoCJNAlBsnWTxyca7JnEeDIMrNAy1QVecEhZguUT1ZnQJ9BxB+DrxWUbApkGF0=; 24:cVKkc6OkXxYnofVQrMQLJyVthodGzUFY8sxvzNs8wO1YAaYxZOi78meFLlWrLLmb+GJr0L+xRWIcUW/zGNrhZuzDTQxSDkwSbAOcoQRqN9A=; 7:ATv4ZSlO6lwVdjT5lPhCHmopGglKRSAHfRAJg43Oe3zNXMRW7eaSQGY0sV2DTUCO7tqgyfQSAggxVo49bO2RmbaA4qmGPBMAZjWXZM44VlSKv6HK0+JsNTghFtBJ1TkUAPPvpu8Ym6MJDvS+UmMXNDzUOdvFVJUDZiBYdt7xavQ8tYPs7mYuX54jt7XKfGn30cdbK3b+8+5pyRNNPZ7Y+h/3NS7YEqpx3336SSNu+oC/WtjVn92vImIWyMewnqtH SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Feb 2018 17:17:13.2385 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ac74a6b9-9011-4478-689d-08d57885c96d X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR0701MB1889 Subject: [dpdk-dev] [PATCH v1 1/2] net/octeontx: fix null pointer dereference X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Feb 2018 17:17:17 -0000 Fixes: f18b146c498d ("net/octeontx: create ethdev ports") Coverity issue: 195040 Cc: stable@dpdk.org Signed-off-by: Santosh Shukla --- drivers/net/octeontx/octeontx_ethdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/octeontx/octeontx_ethdev.c b/drivers/net/octeontx/octeontx_ethdev.c index b739c0b..0d8937c 100644 --- a/drivers/net/octeontx/octeontx_ethdev.c +++ b/drivers/net/octeontx/octeontx_ethdev.c @@ -1149,7 +1149,7 @@ octeontx_create(struct rte_vdev_device *dev, int port, uint8_t evdev, return data->port_id; err: - if (port) + if (nic) octeontx_port_close(nic); if (eth_dev != NULL) { -- 2.7.4