Module Name: src Committed By: pgoyette Date: Thu Apr 27 11:58:58 UTC 2017
Modified Files: src/sys/dev [prg-localcount2]: cgd.c Log Message: Fix checking of failure-to-spawn a unit (check the returned address for NULL, vs the pointer to that address). Ensure that that device_release() is called in all exit paths from cgd_close(). Update handling of CGDIOCCLR ioctl the same as CGDIOCSET. In particular, don't return without calling device_release(), as any subsequent attempt to detach the device will hang forever waiting for its localcount to drain. To generate a diff of this commit: cvs rdiff -u -r1.114.4.1 -r1.114.4.2 src/sys/dev/cgd.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.