From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] eal: fix tailq init for uio/vfio resources Date: Thu, 12 Mar 2015 08:36:22 +0100 Message-ID: <1485430.lunJJ757N3@xps13> References: <1426094723-18766-1-git-send-email-david.marchand@6wind.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev-VfR2kkLFssw@public.gmane.org To: David Marchand Return-path: In-Reply-To: <1426094723-18766-1-git-send-email-david.marchand-pdR9zngts4EAvxtiuMwx3w@public.gmane.org> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" 2015-03-11 18:25, David Marchand: > Commit a2348166ea18 ("tailq: move to dynamic tailq") introduced a bug in > uio/vfio resources list init. > > These resources list were pointed at through a pointer initialised only once but > too early in the eal init (before tailqs init). > > Fix this by "resolving" this pointer when used (which is well after tailqs > init). > > Fixes: a2348166ea18 ("tailq: move to dynamic tailq") > Reported-by: Marvin Liu > Reported-by: Tetsuya Mukawa > Signed-off-by: David Marchand > --- > > This patch is an alternative to the patch proposed by Marvin. > It has been tested only on Linux and with uio driver. Applied, thanks