]> git.ipfire.org Git - thirdparty/linux.git/blobdiff - drivers/staging/android/ashmem.c
mmap locking API: convert mmap_sem comments
[thirdparty/linux.git] / drivers / staging / android / ashmem.c
index 8044510d8ec673667a7ba9c90426e961a28e89c3..c05a214191dad3649bfb55d5f170775c6736a289 100644 (file)
@@ -555,7 +555,7 @@ static int set_name(struct ashmem_area *asma, void __user *name)
 
        /*
         * Holding the ashmem_mutex while doing a copy_from_user might cause
-        * an data abort which would try to access mmap_sem. If another
+        * an data abort which would try to access mmap_lock. If another
         * thread has invoked ashmem_mmap then it will be holding the
         * semaphore and will be waiting for ashmem_mutex, there by leading to
         * deadlock. We'll release the mutex and take the name to a local
@@ -586,7 +586,7 @@ static int get_name(struct ashmem_area *asma, void __user *name)
         * Have a local variable to which we'll copy the content
         * from asma with the lock held. Later we can copy this to the user
         * space safely without holding any locks. So even if we proceed to
-        * wait for mmap_sem, it won't lead to deadlock.
+        * wait for mmap_lock, it won't lead to deadlock.
         */
        char local_name[ASHMEM_NAME_LEN];