From 7c5897933f4f64594602b2e38264af705c061754 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Wed, 5 Aug 2015 18:11:59 +0200 Subject: Use global locks to protect kmem allocation to prevent race while allocating simmultaneously locking kmem pages and any other type of kmem --- pcilib/locking.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pcilib/locking.h') diff --git a/pcilib/locking.h b/pcilib/locking.h index ae2f368..ccacd63 100644 --- a/pcilib/locking.h +++ b/pcilib/locking.h @@ -20,7 +20,7 @@ typedef struct pcilib_locking_s pcilib_locking_t; struct pcilib_locking_s { pcilib_kmem_handle_t *kmem; /**< kmem used to store mutexes */ pcilib_lock_t *locking; /**< lock used while intializing other locks */ - pcilib_lock_t *mmap; /**< lock used to protect mmap operation */ +// pcilib_lock_t *mmap; /**< lock used to protect mmap operation */ }; #ifdef __cplusplus -- cgit v1.2.3