Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Jun 2017 18:17:32 +0000 (UTC)
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r320194 - head/sys/compat/linuxkpi/common/src
Message-ID:  <201706211817.v5LIHWPV061579@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: markj
Date: Wed Jun 21 18:17:32 2017
New Revision: 320194
URL: https://svnweb.freebsd.org/changeset/base/320194

Log:
  Add missing lock destructor invocations to the LinuxKPI unload handler.
  
  MFC after:	1 week

Modified:
  head/sys/compat/linuxkpi/common/src/linux_compat.c

Modified: head/sys/compat/linuxkpi/common/src/linux_compat.c
==============================================================================
--- head/sys/compat/linuxkpi/common/src/linux_compat.c	Wed Jun 21 18:15:47 2017	(r320193)
+++ head/sys/compat/linuxkpi/common/src/linux_compat.c	Wed Jun 21 18:17:32 2017	(r320194)
@@ -2026,6 +2026,8 @@ linux_compat_uninit(void *arg)
 	linux_kobject_kfree_name(&linux_root_device.kobj);
 	linux_kobject_kfree_name(&linux_class_misc.kobj);
 
+	mtx_destroy(&vmmaplock);
+	spin_lock_destroy(&pci_lock);
 	rw_destroy(&linux_vma_lock);
 }
 SYSUNINIT(linux_compat, SI_SUB_DRIVERS, SI_ORDER_SECOND, linux_compat_uninit, NULL);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201706211817.v5LIHWPV061579>