From patchwork Tue Feb 19 14:20:32 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfram Sang X-Patchwork-Id: 31523 Received: (qmail 120532 invoked by alias); 19 Feb 2019 14:20:44 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 120523 invoked by uid 89); 19 Feb 2019 14:20:44 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS, SPF_PASS autolearn=ham version=3.3.2 spammy=discounted, Hx-languages-length:968 X-HELO: pokefinder.org From: Wolfram Sang To: libc-alpha@sourceware.org Cc: Wolfram Sang Subject: [PATCH] nptl: correct comment in pthread_mutex_trylock Date: Tue, 19 Feb 2019 15:20:32 +0100 Message-Id: <20190219142032.2894-1-wsa@the-dreams.de> I found this typo when educating myself about the EOWNERDEAD topic. --- I don't have a CA and I don't think I need one with this trivial change being my first glibc contribution. Let me know if you disagree. It's a funny typo, though :) nptl/pthread_mutex_trylock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nptl/pthread_mutex_trylock.c b/nptl/pthread_mutex_trylock.c index bf2869eca2..3bba464409 100644 --- a/nptl/pthread_mutex_trylock.c +++ b/nptl/pthread_mutex_trylock.c @@ -130,7 +130,7 @@ __pthread_mutex_trylock (pthread_mutex_t *mutex) __asm ("" ::: "memory"); THREAD_SETMEM (THREAD_SELF, robust_head.list_op_pending, NULL); - /* Note that we deliberately exist here. If we fall + /* Note that we deliberately exit here. If we fall through to the end of the function __nusers would be incremented which is not correct because the old owner has to be discounted. */