Author: jkim Date: Mon Jun 22 17:46:55 2009 New Revision: 194639 URL: http://svn.freebsd.org/changeset/base/194639
Log: Add a missing return in NULL mutex case. Submitted by: Pawel Worach (pawel dot worach at gmail dot com) Modified: head/sys/dev/acpica/Osd/OsdSynch.c Modified: head/sys/dev/acpica/Osd/OsdSynch.c ============================================================================== --- head/sys/dev/acpica/Osd/OsdSynch.c Mon Jun 22 17:09:46 2009 (r194638) +++ head/sys/dev/acpica/Osd/OsdSynch.c Mon Jun 22 17:46:55 2009 (r194639) @@ -417,9 +417,11 @@ AcpiOsReleaseMutex(ACPI_MUTEX Handle) ACPI_FUNCTION_TRACE((char *)(uintptr_t)__func__); - if (am == NULL) + if (am == NULL) { ACPI_DEBUG_PRINT((ACPI_DB_MUTEX, "cannot release null mutex\n")); + return_VOID; + } mtx_lock(&am->am_lock); _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"