From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 8E385A04A9; Wed, 26 Jan 2022 14:52:19 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2E7DD42734; Wed, 26 Jan 2022 14:52:19 +0100 (CET) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mails.dpdk.org (Postfix) with ESMTP id AD67C42716 for ; Wed, 26 Jan 2022 14:52:16 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1643205136; x=1674741136; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=CDbTzQXozMlGoAr+njyekb1Jl1mtIqZ6cxt7UDQdSU4=; b=Pea/aTtqiBCD1enjWaHPbpJu3zoOhUyW8FbLqtw1BMrRgH6sdvYiMpmq oHQO+UQyzu8Mcgwe3lNAIRhpkOMLfYMJe/h+pk8QkvaC4Kbca3VJUf5XF pXZIFES3qmvUv9pRwE/95Y5tzvslehZ15Su5fLZZEwW/uv1aU3ySZnFpJ YeHMaZB7rB93Nm8lhOZs9VrqVQ3HuGyBzoZAELzgOd25A8aFMqGNj988q T0KJiySQaiTs+njdCbYHxeekXcA/o8eTpTnhx+MwepAoa8nLxV3TXamYA iCCMjSS615BjFsKFP4AGKgsmplI/PFVSSXoQA2ZMw+jyRju88Bw1J3yYX g==; X-IronPort-AV: E=McAfee;i="6200,9189,10238"; a="244150118" X-IronPort-AV: E=Sophos;i="5.88,318,1635231600"; d="scan'208";a="244150118" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Jan 2022 05:52:15 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,318,1635231600"; d="scan'208";a="696245116" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by orsmga005.jf.intel.com with ESMTP; 26 Jan 2022 05:52:15 -0800 Received: from orsmsx609.amr.corp.intel.com (10.22.229.22) by ORSMSX603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20; Wed, 26 Jan 2022 05:52:15 -0800 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx609.amr.corp.intel.com (10.22.229.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20 via Frontend Transport; Wed, 26 Jan 2022 05:52:15 -0800 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (104.47.56.171) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2308.20; Wed, 26 Jan 2022 05:52:14 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RHqR+uDtw1Ex1WGn5rEzI5GUiAnDCHETWMSUCuwPNCatfgvhqMnvnJb2AdgiC0x443/yFiGJUhE4jEHbsBuEIRpBsV0quIoS11KA7ge+IX7OhFtfYl3J6w3crNDWk0ZAIxdNuwiEEQNDp1Kip5Ay3Djed3qK/kSgnHTuhC0m/pQejThxWpgzdRfEzwwkVVICGlls5N+bpx62e4hIKM/VEHk+lP7wIKsBdDYu2/ZB4T4eYT2gT3h8nqE5F4jJcj8y5uf2P2kOtAIdq6QfbS9PzIWmfdq56+LPvZWFNsHnL3JBFlCoMm/lBdBfdckxn2Y9nJngOXcZUZljF0r7SmmMTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=CDbTzQXozMlGoAr+njyekb1Jl1mtIqZ6cxt7UDQdSU4=; b=UljDwiwKOMwOShovytrJg6y8sPOrOT17gKYyC0us8xSIVImEuMTj6Yhn4tQbQG+SROZ7kvL6S57Y5B79ek46j3u+f3y5JXBg/TZRN31+lUsiF92V6NmL4/0qw9/Fo9zB2BRNEB2gSV/cQK2PCLDm8SJipbhArqHb3wjrlzi8H3bzDeXW2+UIv9/26G19LDXzGPU/YcTCwHcxVd5XUZgLfIDwcQA9Mr27v+TJHDx1LT/ncKHdUkbIDWr8d1tCwrolfIRGUWVvups1NVD2U/c70s80AXng1n3asaKjuUuQTiDNmNYTYlFcRXEfmsvR6XW5uk8r3+81TEuYRAFHFFCzKQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from CO1PR11MB4868.namprd11.prod.outlook.com (2603:10b6:303:90::19) by DM6PR11MB3338.namprd11.prod.outlook.com (2603:10b6:5:9::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4909.12; Wed, 26 Jan 2022 13:52:13 +0000 Received: from CO1PR11MB4868.namprd11.prod.outlook.com ([fe80::184:5f97:2aea:b8a3]) by CO1PR11MB4868.namprd11.prod.outlook.com ([fe80::184:5f97:2aea:b8a3%8]) with mapi id 15.20.4930.015; Wed, 26 Jan 2022 13:52:13 +0000 Message-ID: Date: Wed, 26 Jan 2022 13:52:07 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0 Thunderbird/91.4.0 Subject: Re: [PATCH] net/iavf: fix null pointer dereference Content-Language: en-GB To: Weiguo Li , CC: References: From: "Nicolau, Radu" In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: DB6P192CA0015.EURP192.PROD.OUTLOOK.COM (2603:10a6:4:b8::25) To CO1PR11MB4868.namprd11.prod.outlook.com (2603:10b6:303:90::19) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: b5c2bb89-cff1-4693-e792-08d9e0d30e3f X-MS-TrafficTypeDiagnostic: DM6PR11MB3338:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:2331; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: D2r9FEn1bMt92B2qnO/PshIZZF6ymT3xm9VN2b1m1GipHn/cET6HZRp3wLu3x20v8srY3p0Q3QiKLmfrhD4ib4iMWMe0GUV6xPUc4X5ll827MT/fzabFPCjm/kTnHtNdha4cJ3ntqcJdyg4sgL0hAxP1AFHH07GLFtsLOcpxzZS73otE6UKxLQm9qC5EjuCys5b/3DLyJ5J60lW9Z3gXQrzDfyt684JIRDgYcdJbwNTJhaNO+qkl/MUXK+JUNbBnmnJeiKsJWj3W5VM/fObLSdA/b/sirf3Lmx34X2I9l7WabU4B1GKIONMORRv1g807Mac0/RCZZ32P1i6yd7LF5ZlZwX+pit+ldlVHxC/nSgp4iiytgjz5Nd+lM5Yv8L4yQmX10ZZVZUptkpTtowZ0qI5Pz9uRyR7LDdt40oL4dcT6OPrSmCIJdPvTnlpB5oXyfM/4Q7eQy400wRzZmZPBZeUlOSKgsgeuODTUsV2xgQX77qm8M6bciDXGH0sOWU6716UIuswTCBLNM0rQapcd6RBvVXKR4ixIgzkFpZkBbwpANlu7jKl/b1pN6qnVDPcudMwwLmUbgBDrjh9xm0NJ+FfQvd7do/hMK94qYtjDp8vcT1XPnfAY4lDK4vtGPp9PrHXzO+6wcuMdnmKj2juleS1956OhBoJ2yylKqgR7qULEqBtgqZCF9KCWnwqmqiH/p2BYNkb44lHxZ85XEaSM02FQIEGbgWA1bh2Fe4iY+bjk+XXB3Dvbsffl2iFcVJt+FfL/MD4FRUC9yoED5rVqMg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CO1PR11MB4868.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(366004)(2616005)(558084003)(31696002)(66556008)(508600001)(66476007)(6666004)(6486002)(82960400001)(316002)(53546011)(8676002)(6512007)(2906002)(26005)(86362001)(83380400001)(4326008)(66946007)(186003)(55236004)(6506007)(5660300002)(36756003)(6636002)(31686004)(8936002)(38100700002)(48020200001)(45980500001)(43740500002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?elZLYzFmd3NJTGF1Z1oxZzdzaWc3WWNYUTdUQ09xYm9CS0RrZVJnRThISUVk?= =?utf-8?B?elVyMTBRMS9xNVBQb0VmNkE2cXlURi92UFJqOXdrWnFSbkVINW9waVR5QVl0?= =?utf-8?B?Nml1Yk1VTTU2TEZyajV4MFZxVFk0Z2hsSldZYkxiZjFSQlNGeDlZK1JJRE1B?= =?utf-8?B?UW4wQlE4VmpoL3lPTVJNRVc5VWgyeFVzNGhnYWpIc0FLSHJzcDhGdFBOMEJ2?= =?utf-8?B?d2N3RjFrT2xMaTJ4OGMyWkw2eTJ4Z2RNdGoydW81MGtwMFFuM0U0cnV1aUs5?= =?utf-8?B?Z0g2NzlDdXBBOTlaVW9JNjdkbWxQM05jUmlSbVpWQnNZQThUZWxMSUpyUFdn?= =?utf-8?B?a2YwaVdCdm9reU92YXJ3bm5ibEx5RjlRSHp1OUdTQVJRaTV5Yjc5d2dzejhT?= =?utf-8?B?VUM1YUNaalRtT0U4RnpxV3lqMCtHejJ4ZTNvTkk1cGdTbkg0c3liYUREOU4z?= =?utf-8?B?U2pSdnkwQ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.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Jan 2022 13:52:13.5331 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 57VY968a1aYhh4AvM8PagHjR0/oblIQPmbMX8SWOYYV2X9Pk4bUHgg9aBLLDQ6HsdEQpX3xp4RxtZkhsbWnI5g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR11MB3338 X-OriginatorOrg: intel.com X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On 1/25/2022 2:23 PM, Weiguo Li wrote: > Check for memory allocation failure is added to avoid null > pointer dereference. > > Fixes: 6bc987ecb860 ("net/iavf: support IPsec inline crypto") > > Signed-off-by: Weiguo Li > --- Acked-by: Radu Nicolau