patch-2.3.99-pre7 linux/drivers/usb/serial/visor.c

Next file: linux/drivers/usb/serial/visor.h
Previous file: linux/drivers/usb/serial/usbserial.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.99-pre6/linux/drivers/usb/serial/visor.c linux/drivers/usb/serial/visor.c
@@ -1,7 +1,7 @@
 /*
  * USB HandSpring Visor driver
  *
- *	(C) Copyright (C) 1999, 2000
+ *	Copyright (C) 1999, 2000
  *	    Greg Kroah-Hartman (greg@kroah.com)
  *
  *	This program is free software; you can redistribute it and/or modify
@@ -11,6 +11,9 @@
  *
  * See Documentation/usb/usb-serial.txt for more information on using this driver
  * 
+ * (04/27/2000) Ryan VanderBijl
+ * 	Fixed memory leak in visor_close
+ *
  * (03/26/2000) gkh
  *	Split driver up into device specific pieces.
  * 
@@ -110,6 +113,7 @@
 		/* send a shutdown message to the device */
 		usb_control_msg (serial->dev, usb_rcvctrlpipe(serial->dev, 0), VISOR_CLOSE_NOTIFICATION,
 				0xc2, 0x0000, 0x0000, transfer_buffer, 0x12, 300);
+		kfree (transfer_buffer);
 	}
 
 	/* shutdown our bulk reads and writes */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)