Netdev List
 help / color / mirror / Atom feed
* [PATCH 1/3] hso: memory leak in hso_serial_common_free()
@ 2009-11-19  8:43 Martin Schiller
  2009-11-19 20:20 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Martin Schiller @ 2009-11-19  8:43 UTC (permalink / raw)
  To: netdev; +Cc: linux-kernel


This patch fixes a memory leak in the hso_serial_common_free() function.
The tx_buffer of a serial device was never freed here.

Signed-off-by: Martin Schiller <mschiller@tdt.de>
---

--- linux-2.6.32-rc7-git3/drivers/net/usb/hso.c.orig 2009-11-19 08:54:08.000000000 +0100
+++ linux-2.6.32-rc7-git3/drivers/net/usb/hso.c 2009-11-19 09:04:29.000000000 +0100
@@ -2296,6 +2296,7 @@ static void hso_serial_common_free(struc
  /* unlink and free TX URB */
  usb_free_urb(serial->tx_urb);
  kfree(serial->tx_data);
+ kfree(serial->tx_buffer);
 }
 
 static int hso_serial_common_create(struct hso_serial *serial, int num_urbs,



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

end of thread, other threads:[~2009-11-19 20:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-19  8:43 [PATCH 1/3] hso: memory leak in hso_serial_common_free() Martin Schiller
2009-11-19 20:20 ` David Miller

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