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

Navdeep Parhar np at FreeBSD.org
Fri Jul 19 21:54:49 UTC 2013


Author: np
Date: Fri Jul 19 21:54:48 2013
New Revision: 253477
URL: http://svnweb.freebsd.org/changeset/base/253477

Log:
  There's nothing to free if the unit wasn't allocated.

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

Modified: head/sys/dev/usb/usb_pf.c
==============================================================================
--- head/sys/dev/usb/usb_pf.c	Fri Jul 19 21:40:57 2013	(r253476)
+++ head/sys/dev/usb/usb_pf.c	Fri Jul 19 21:54:48 2013	(r253477)
@@ -182,7 +182,6 @@ usbpf_clone_create(struct if_clone *ifc,
 
 	error = ifc_alloc_unit(ifc, &unit);
 	if (error) {
-		ifc_free_unit(ifc, unit);
 		device_printf(ubus->parent, "usbpf: Could not allocate "
 		    "instance\n");
 		return (error);


More information about the svn-src-head mailing list