public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] [media] dib0700: Fix memory leak during initialization
@ 2012-02-12 10:19 Jean Delvare
  2012-03-08 11:21 ` Mauro Carvalho Chehab
  0 siblings, 1 reply; 5+ messages in thread
From: Jean Delvare @ 2012-02-12 10:19 UTC (permalink / raw)
  To: LMML; +Cc: Mauro Carvalho Chehab, Devin Heitmueller

Reported by kmemleak.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Cc: Mauro Carvalho Chehab <mchehab@infradead.org>
Cc: Devin Heitmueller <dheitmueller@kernellabs.com>
---
I am not familiar with the usb API, are we also supposed to call
usb_kill_urb() in the error case maybe?

 drivers/media/dvb/dvb-usb/dib0700_core.c |    2 ++
 1 file changed, 2 insertions(+)

--- linux-3.3-rc3.orig/drivers/media/dvb/dvb-usb/dib0700_core.c	2012-01-20 14:06:38.000000000 +0100
+++ linux-3.3-rc3/drivers/media/dvb/dvb-usb/dib0700_core.c	2012-02-12 00:32:19.005334036 +0100
@@ -787,6 +787,8 @@ int dib0700_rc_setup(struct dvb_usb_devi
 	if (ret)
 		err("rc submit urb failed\n");
 
+	usb_free_urb(purb);
+
 	return ret;
 }
 

-- 
Jean Delvare

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-03-13 17:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-12 10:19 [PATCH] [media] dib0700: Fix memory leak during initialization Jean Delvare
2012-03-08 11:21 ` Mauro Carvalho Chehab
2012-03-12 10:04   ` Jean Delvare
2012-03-12 10:28     ` Mauro Carvalho Chehab
2012-03-13 17:48       ` Jean Delvare

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox