qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Gerd Hoffmann <kraxel@redhat.com>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: weidong.huang@huawei.com, Luonengjun <luonengjun@huawei.com>,
	QEMU Developers <qemu-devel@nongnu.org>,
	Luiz Capitulino <lcapitulino@redhat.com>,
	"Gonglei (Arei)" <arei.gonglei@huawei.com>,
	Vassili Karpov <av1474@comtv.ru>,
	Stefan Hajnoczi <stefanha@redhat.com>,
	Paolo Bonzini <pbonzini@redhat.com>
Subject: Re: [Qemu-devel] [PATCH v3 3/4] audio: Fix using freed pointer in wav_fini_out()
Date: Thu, 12 Jun 2014 12:31:39 +0200	[thread overview]
Message-ID: <1402569099.21444.3.camel@nilsson.home.kraxel.org> (raw)
In-Reply-To: <CAFEAcA8nEdq4M7fL-xFB0hSB=g4rhu8Q6M4NyDgvqAs1Lx8nUg@mail.gmail.com>

  Hi,

> >   doclose:
> >      if (fclose (wav->f))  {
> > -        dolog ("wav_fini_out: fclose %p failed\nReason: %s\n",
> > -               wav->f, strerror (errno));
> > +        dolog ("wav_fini_out: fclose 'wav->f' failed\nReason: %s\n",
> > +              strerror (errno));
> 
> I would just drop the 'wav->f' here.

Or drop the whole message?  It's a highly unlikely error condition after
all, and we can't do much about it anyway.

cheers,
  Gerd

  reply	other threads:[~2014-06-12 10:32 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-10  9:20 [Qemu-devel] [PATCH v3 0/4] Fix some errors spotted by Coverity arei.gonglei
2014-06-10  9:20 ` [Qemu-devel] [PATCH v3 1/4] json-parser: drop superfluous assignment for token variable arei.gonglei
2014-06-10 12:35   ` Eric Blake
2014-06-10 14:57   ` Luiz Capitulino
2014-06-10  9:20 ` [Qemu-devel] [PATCH v3 2/4] qemu-bridge-helper: Fix fd leak in main() arei.gonglei
2014-06-11 11:31   ` Stefan Hajnoczi
2014-06-10  9:20 ` [Qemu-devel] [PATCH v3 3/4] audio: Fix using freed pointer in wav_fini_out() arei.gonglei
2014-06-10 10:05   ` Peter Maydell
2014-06-12 10:31     ` Gerd Hoffmann [this message]
2014-06-12 13:05       ` Gonglei (Arei)
2014-06-12 13:38         ` Gerd Hoffmann
2014-06-10  9:20 ` [Qemu-devel] [PATCH v3 4/4] vga: Fix divide-by-zero in vga_update_text arei.gonglei
2014-06-12 10:43   ` Gerd Hoffmann
2014-06-12 11:07     ` Paolo Bonzini
2014-06-12 12:58     ` Gonglei (Arei)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1402569099.21444.3.camel@nilsson.home.kraxel.org \
    --to=kraxel@redhat.com \
    --cc=arei.gonglei@huawei.com \
    --cc=av1474@comtv.ru \
    --cc=lcapitulino@redhat.com \
    --cc=luonengjun@huawei.com \
    --cc=pbonzini@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@redhat.com \
    --cc=weidong.huang@huawei.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).