summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDouglas Schilling Landgraf <dougsland@linuxtv.org>2008-11-12 03:47:57 +0100
committerMauro Carvalho Chehab <mchehab@redhat.com>2008-11-17 02:54:44 +0100
commit7935eeae793ff24e2d6053a9df63be71323ad634 (patch)
treed9e52f5438307aa7ddb4658906527cc00e543c73
parentV4L/DVB (9603): dvb-ttusb-budget: Add validation for ttusb_alloc_iso_urbs (diff)
downloadlinux-7935eeae793ff24e2d6053a9df63be71323ad634.tar.xz
linux-7935eeae793ff24e2d6053a9df63be71323ad634.zip
V4L/DVB (9604): ttusb_dec: fix memory leak
Free allocated memory Signed-off-by: Douglas Schilling Landgraf <dougsland@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--drivers/media/dvb/ttusb-dec/ttusb_dec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/dvb/ttusb-dec/ttusb_dec.c b/drivers/media/dvb/ttusb-dec/ttusb_dec.c
index c1386e9b13d3..0aa96df80fc2 100644
--- a/drivers/media/dvb/ttusb-dec/ttusb_dec.c
+++ b/drivers/media/dvb/ttusb-dec/ttusb_dec.c
@@ -1260,6 +1260,7 @@ static int ttusb_dec_init_usb(struct ttusb_dec *dec)
dec->irq_buffer = usb_buffer_alloc(dec->udev,IRQ_PACKET_SIZE,
GFP_ATOMIC, &dec->irq_dma_handle);
if(!dec->irq_buffer) {
+ usb_free_urb(dec->irq_urb);
return -ENOMEM;
}
usb_fill_int_urb(dec->irq_urb, dec->udev,dec->irq_pipe,