From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ferruh Yigit Subject: Re: [dpdk-stable] [PATCH 1/2] net/sfc: fix an Rx queue double release possibility Date: Fri, 21 Sep 2018 15:53:59 +0100 Message-ID: <2de70a03-3d72-e73b-e2e1-d03faa282fef@intel.com> References: <1536910296-17455-1-git-send-email-arybchenko@solarflare.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: Igor Romanov , stable@dpdk.org To: Andrew Rybchenko , dev@dpdk.org Return-path: In-Reply-To: <1536910296-17455-1-git-send-email-arybchenko@solarflare.com> Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 9/14/2018 8:31 AM, Andrew Rybchenko wrote: > From: Igor Romanov > > There are two function that call sfc_rx_qfini(): > sfc_rx_fini_queues() and sfc_rx_queue_release(). But only > sfc_rx_queue_release() sets rx_queues pointer of the device data to NULL. > It may lead to the scenario in which a queue is destroyed by > sfc_rx_fini_queues() and after the queue is attempted to be destroyed again > by sfc_rx_queue_release(). > > Move NULL assignment to sfc_rx_qfini(). > > Fixes: ce35b05c635e ("net/sfc: implement Rx queue setup release operations") > Cc: stable@dpdk.org > > Signed-off-by: Igor Romanov > Signed-off-by: Andrew Rybchenko Series applied to dpdk-next-net/master, thanks.