From: Stefan Berger Subject: [PATCH] [QEMU-DM] Add missing intitialization of variable in TIS dev. model Date: Wed, 14 Feb 2007 13:09:40 -0500 Message-ID: <1171476580.11194.6.camel@lt2.watson.ibm.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-D4vVhLR16Ih/g8PYd7Rr" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Xen-devel Cc: keir@xensource.com List-Id: xen-devel@lists.xenproject.org --=-D4vVhLR16Ih/g8PYd7Rr Content-Type: text/plain Content-Transfer-Encoding: 7bit Add a missing initialization of a state variable in the TIS device model so that the first response received after a resume is not aborted. Signed-off-by: Stefan Berger --=-D4vVhLR16Ih/g8PYd7Rr Content-Disposition: attachment; filename=tis_resume_fix.diff Content-Type: text/x-patch; name=tis_resume_fix.diff; charset=UTF-8 Content-Transfer-Encoding: 7bit Index: root/xen-unstable.hg/tools/ioemu/hw/tpm_tis.c =================================================================== --- root.orig/xen-unstable.hg/tools/ioemu/hw/tpm_tis.c +++ root/xen-unstable.hg/tools/ioemu/hw/tpm_tis.c @@ -881,6 +881,7 @@ void tpm_tis_init(SetIRQFunc *set_irq, v s->Transmitlayer = -1; s->tpmTx.fd[0] = -1; s->tpmTx.fd[1] = -1; + s->aborting_locty = NO_LOCALITY; tpm_initialize_instance(s, s->vtpm_instance); memset(s->buffer.buf,0,sizeof(s->buffer.buf)); --=-D4vVhLR16Ih/g8PYd7Rr Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --=-D4vVhLR16Ih/g8PYd7Rr--