From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] igb_uio: fix refcount if open returns error Date: Thu, 11 Oct 2018 13:48:48 +0200 Message-ID: <2280183.FyIV3bEMkT@xps> References: <20180914153019.8983-1-stephen@networkplumber.org> <2919e34a-f943-80fc-d2f0-d1c53fde0cae@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, Ferruh Yigit , Stephen Hemminger To: Stephen Hemminger Return-path: Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by dpdk.org (Postfix) with ESMTP id 22EB71B579 for ; Thu, 11 Oct 2018 13:48:52 +0200 (CEST) In-Reply-To: <2919e34a-f943-80fc-d2f0-d1c53fde0cae@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" 26/09/2018 19:20, Ferruh Yigit: > On 9/14/2018 4:30 PM, Stephen Hemminger wrote: > > This fixes the problem of reference count leak if > > igbuio_pci_enable_interrupts fails. > > > > Also, replace mutex and integer with a kernel atomic counter. > > This is standard pattern for kernel devices. > > > > Fixes: 19685d5aa79c ("igb_uio: allow multi-process access") > > Signed-off-by: Stephen Hemminger > > Acked-by: Ferruh Yigit Applied, thanks