From: Li Qiang <liq3ea@gmail.com>
To: Jiri Slaby <jslaby@suse.cz>
Cc: qemu-devel@nongnu.org, pbonzini@redhat.com, Li Qiang <liqiang6-s@360.cn>
Subject: Re: [Qemu-devel] [PATCH] misc: edu: free dma timer in device unit
Date: Wed, 8 Feb 2017 14:58:40 +0800 [thread overview]
Message-ID: <CAKXe6SK64qPtfZ2QwkYfehqnSSaPYsdHjjznS1firjocPafaCQ@mail.gmail.com> (raw)
In-Reply-To: <193b9259-ea12-2a97-572c-369e88533016@suse.cz>
2017-02-08 14:53 GMT+08:00 Jiri Slaby <jslaby@suse.cz>:
> On 02/08/2017, 04:40 AM, Li Qiang wrote:
> > From: Li Qiang <liqiang6-s@360.cn>
> >
> > This can avoid a memory leak when hotplug and unplug.
> >
> > Signed-off-by: Li Qiang <liqiang6-s@360.cn>
> > ---
> > hw/misc/edu.c | 1 +
> > 1 file changed, 1 insertion(+)
> >
> > diff --git a/hw/misc/edu.c b/hw/misc/edu.c
> > index 401039c..7565552 100644
> > --- a/hw/misc/edu.c
> > +++ b/hw/misc/edu.c
> > @@ -375,6 +375,7 @@ static void pci_edu_uninit(PCIDevice *pdev)
> > qemu_mutex_destroy(&edu->thr_mutex);
> >
> > timer_del(&edu->dma_timer);
> > + timer_free(&edu->dma_timer);
>
> Freeing a static timer does not sound correct to me?
>
>
Sorry, as there is a few example that doesn't free timer, I don't notice
this is a static timer.
> thanks,
> --
> js
> suse labs
>
prev parent reply other threads:[~2017-02-08 6:58 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-08 3:40 [Qemu-devel] [PATCH] misc: edu: free dma timer in device unit Li Qiang
2017-02-08 6:53 ` Jiri Slaby
2017-02-08 6:58 ` Li Qiang [this message]
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=CAKXe6SK64qPtfZ2QwkYfehqnSSaPYsdHjjznS1firjocPafaCQ@mail.gmail.com \
--to=liq3ea@gmail.com \
--cc=jslaby@suse.cz \
--cc=liqiang6-s@360.cn \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
/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).