From: Douglas Schilling Landgraf <dougsland@gmail.com>
To: "Robert Krakora" <rob.krakora@messagenetsystems.com>
Cc: Jerry Geis <geisj@messagenetsystems.com>,
video4linux-list@redhat.com,
Mauro Carvalho Chehab <mchehab@redhat.com>,
linux-media <linux-media@vger.kernel.org>
Subject: Re: em28xx-audio.c memory leak and kill URB function call missing?
Date: Sat, 3 Jan 2009 22:43:51 -0200 [thread overview]
Message-ID: <20090103224351.0276d1d5@gmail.com> (raw)
In-Reply-To: <b24e53350901031059w53da1bb9j54c2e89a4bd0dfed@mail.gmail.com>
Hello Robert,
On Sat, 3 Jan 2009 12:59:57 -0600
"Robert Krakora" <rob.krakora@messagenetsystems.com> wrote:
> [root@am2mm v4l-dvb]# hg diff
> diff -r 6a189bc8f115 linux/drivers/media/video/em28xx/em28xx-audio.c
> --- a/linux/drivers/media/video/em28xx/em28xx-audio.c Wed Dec 31
> 15:26:57 2008 -0200
> +++ b/linux/drivers/media/video/em28xx/em28xx-audio.c Wed Dec 31
> 19:22:38 2008 -0500
> @@ -63,9 +63,12 @@
>
> dprintk("Stopping isoc\n");
> for (i = 0; i < EM28XX_AUDIO_BUFS; i++) {
> + usb_kill_urb(dev->adev.urb[i]);
> usb_unlink_urb(dev->adev.urb[i]);
In this case, em28xx uses usb_unlink_urb() instead of usb_kill_urb().
This function does not wait for the urb to be fully stopped before
return to the caller (needed to avoid an already fixed oops).
> usb_free_urb(dev->adev.urb[i]);
> dev->adev.urb[i] = NULL;
> + kfree(dev->adev.transfer_buffer[i]);
> + dev->adev.transfer_buffer[i] = NULL;
> }
>
Seems ok, please send a new patch with your SOB (Signed-off-by).
Additional info:
http://www.linuxtv.org/wiki/index.php/Development:_How_to_submit_patches
Thanks,
Douglas
--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list
next prev parent reply other threads:[~2009-01-04 0:43 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <b24e53350812311623qbf8a501re86303fb0fd9ef5c@mail.gmail.com>
2009-01-03 18:59 ` Fwd: em28xx-audio.c memory leak and kill URB function call missing? Robert Krakora
2009-01-04 0:43 ` Douglas Schilling Landgraf [this message]
2009-01-04 3:16 ` Robert Krakora
2009-01-04 15:17 ` Douglas Schilling Landgraf
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=20090103224351.0276d1d5@gmail.com \
--to=dougsland@gmail.com \
--cc=geisj@messagenetsystems.com \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@redhat.com \
--cc=rob.krakora@messagenetsystems.com \
--cc=video4linux-list@redhat.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.