Author: kib
Date: Sat Jul 30 14:12:37 2011
New Revision: 224521
URL: http://svn.freebsd.org/changeset/base/224521
Log:
Fix the devmtx lock leak from make_dev(9) when the old device cloning
failed due to invalid or duplicated path being generated.
Reviewed by: jh
Approved by: re (kensmith)
MFC after: 1 week
Modified:
head/sys/kern/kern_conf.c
Modified: head/sys/kern/kern_conf.c
==============================================================================
--- head/sys/kern/kern_conf.c Sat Jul 30 13:46:41 2011 (r224520)
+++ head/sys/kern/kern_conf.c Sat Jul 30 14:12:37 2011 (r224521)
@@ -764,7 +764,8 @@ make_dev_credv(int flags, struct cdev **
LIST_REMOVE(dev, si_list);
dev_unlock();
devfs_free(dev);
- }
+ } else
+ dev_unlock();
return (res);
}
}
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"