From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] sched: fix segmentation fault when freeing port Date: Thu, 09 Feb 2017 18:48:16 +0100 Message-ID: <16895121.pfXIAiMIQd@xps13> References: <1486402362-15098-1-git-send-email-jblunck@infradead.org> <3EB4FA525960D640B5BDFFD6A3D8912652748706@IRSMSX108.ger.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, "Dumitrescu, Cristian" , "h.mikita89@gmail.com" , stable@dpdk.org To: Jan Blunck , Alan Dewar Return-path: Received: from mail-wm0-f44.google.com (mail-wm0-f44.google.com [74.125.82.44]) by dpdk.org (Postfix) with ESMTP id 9E0D8FABD for ; Thu, 9 Feb 2017 18:48:18 +0100 (CET) Received: by mail-wm0-f44.google.com with SMTP id c85so238675261wmi.1 for ; Thu, 09 Feb 2017 09:48:18 -0800 (PST) In-Reply-To: <3EB4FA525960D640B5BDFFD6A3D8912652748706@IRSMSX108.ger.corp.intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" > > Prevent a segmentation fault in rte_sched_port_free by only accessing > > the port structure after the NULL pointer check has been made. > > > > Fixes: 7b3c4f35 ("sched: fix releasing enqueued packets") > > > > Signed-off-by: Alan Dewar > > Signed-off-by: Jan Blunck > > Acked-by: Cristian Dumitrescu Cc: stable@dpdk.org Applied, thanks