Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Jul 2013 21:54:48 +0000 (UTC)
From:      Navdeep Parhar <np@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r253477 - head/sys/dev/usb
Message-ID:  <201307192154.r6JLsnhw067582@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201307192154.r6JLsnhw067582>