svn commit: r194065 - head/sys/dev/usb

Andrew Thompson thompsa at FreeBSD.org
Fri Jun 12 16:00:15 UTC 2009


Author: thompsa
Date: Fri Jun 12 16:00:12 2009
New Revision: 194065
URL: http://svn.freebsd.org/changeset/base/194065

Log:
  Free the correct memory pointer.
  
  Submitted by:	Tim Borgeaud (via HPS)

Modified:
  head/sys/dev/usb/usb_compat_linux.c

Modified: head/sys/dev/usb/usb_compat_linux.c
==============================================================================
--- head/sys/dev/usb/usb_compat_linux.c	Fri Jun 12 15:58:55 2009	(r194064)
+++ head/sys/dev/usb/usb_compat_linux.c	Fri Jun 12 16:00:12 2009	(r194065)
@@ -1143,7 +1143,7 @@ usb_linux_free_device(struct usb_device 
 		uhe++;
 	}
 	err = usb_setup_endpoint(dev, &dev->ep0, 0);
-	free(uhe, M_USBDEV);
+	free(dev->linux_endpoint_start, M_USBDEV);
 }
 
 /*------------------------------------------------------------------------*


More information about the svn-src-head mailing list