From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cooper Subject: Re: [PATCH] passthrough/amd: avoid reading an uninitialized variable. Date: Thu, 16 Apr 2015 18:19:49 +0100 Message-ID: <552FEF35.5090004@citrix.com> References: <1429202650-2608-1-git-send-email-tim@xen.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1429202650-2608-1-git-send-email-tim@xen.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Tim Deegan , xen-devel@lists.xen.org Cc: Aravind Gopalakrishnan , Suravee Suthikulpanit List-Id: xen-devel@lists.xenproject.org On 16/04/15 17:44, Tim Deegan wrote: > update_intremap_entry_from_msi() doesn't write to its data pointer on > some error paths, so we copying that variable into the msg would count > as undefined behaviour. > > Signed-off-by: Tim Deegan > Cc: Suravee Suthikulpanit > Cc: Aravind Gopalakrishnan This looks curiously familiar. http://lists.xen.org/archives/html/xen-devel/2015-03/msg03679.html I was meaning to get around to submitting it as a formal patch, but you have definitely beaten me to it :) Reviewed-by: Andrew Cooper