From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vincent Hanquez Subject: Re: [PATCH 1 of 8] libxc: save/restore: remove static context variables Date: Tue, 24 May 2011 11:33:05 +0100 Message-ID: <4DDB8961.60700@eu.citrix.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ian Campbell Cc: Shriram Rajagopalan , Jim Fehlig , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On 05/24/2011 10:14 AM, Ian Campbell wrote: > # HG changeset patch > # User Ian Campbell > # Date 1306228450 -3600 > # Node ID c43bf40e2f29eb02c7dcf1a2317f243f1af5f659 > # Parent 0727b2fcc33fd5cdf847fde0d2be261be3d6b279 > libxc: save/restore: remove static context variables > > 20544:ad9d75d74bd5 and 20545:cc7d66ba0dad seemingly intended to change these > global static variables into stack variables but didn't remove the static > qualifier. > > Also zero the entire struct once with memset rather than clearing fields > piecemeal in two different places. Good catch. Acked-by-self. -- Vincent