]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC r227689:
authornp <np@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 13 Sep 2012 18:47:24 +0000 (18:47 +0000)
committernp <np@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 13 Sep 2012 18:47:24 +0000 (18:47 +0000)
commit3f157110d362541b8ea91b24bc28cf29c2e40307
tree0a47b2a4fdb1fa2130a352ea6773e63a85a8cea2
parent62b292f7bb7a96b13fb7fa2b6513f7f2c6c8c929
MFC r227689:

Do not increment the parent firmware's reference count when any other
firmware image in the module is registered.  Instead, do it when the
other image is itself referenced.

This allows a module with multiple firmware images to be automatically
unloaded when none of the firmware images are in use.

git-svn-id: svn://svn.freebsd.org/base/stable/9@240472 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/kern/subr_firmware.c