[svn-commits] fjoe: freebsd/trunk r10638 - /freebsd/trunk/bsd-kmod/dahdi/bsd-compat.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Thu Apr 5 01:04:43 CDT 2012


Author: fjoe
Date: Thu Apr  5 01:04:39 2012
New Revision: 10638

URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=10638
Log:
release_firmware(): check that firmware is not NULL

Modified:
    freebsd/trunk/bsd-kmod/dahdi/bsd-compat.c

Modified: freebsd/trunk/bsd-kmod/dahdi/bsd-compat.c
URL: http://svnview.digium.com/svn/dahdi/freebsd/trunk/bsd-kmod/dahdi/bsd-compat.c?view=diff&rev=10638&r1=10637&r2=10638
==============================================================================
--- freebsd/trunk/bsd-kmod/dahdi/bsd-compat.c (original)
+++ freebsd/trunk/bsd-kmod/dahdi/bsd-compat.c Thu Apr  5 01:04:39 2012
@@ -568,6 +568,9 @@
 void
 release_firmware(const struct firmware *firmware)
 {
+	if (firmware == NULL)
+		return;
+
 	firmware_put(firmware, FIRMWARE_UNLOAD);
 }
 




More information about the svn-commits mailing list