pthread: fix an error in destorynig a mutex
authorEunBong Song <eunb.song@samsung.com>
Thu, 13 Apr 2017 00:10:19 +0000 (09:10 +0900)
committerHeesub Shin <heesub.shin@samsung.com>
Tue, 18 Apr 2017 03:02:19 +0000 (12:02 +0900)
commite22bf659f3578837d9c33de9e69fddd09e800ddf
tree1c6328e5eb3d002325a41a069078d70252895b87
parent06c6fb3bca9b92eb897ae278584c2967787248f2
pthread: fix an error in destorynig a mutex

This patch fixes error after a pthread has been canceled while holding
the mutex. All credits should go to Gregory Nutt who wrote the original
commit.

Change-Id: Ifeb172d356ea7abce373d80057ee281d713df542
Signed-off-by: Gregory Nutt <gnutt@nuttx.org>
[Song: backported b0796446 from NuttX]
Signed-off-by: EunBong Song <eunb.song@samsung.com>
os/kernel/pthread/pthread_mutexdestroy.c