libhybris/libhybris — pull request #80 by rsalveti (2013-06-25 04:17:13+00:00)
Title: hooks.c: handle invalid mutex in pthread_mutex_destroy

Patch originally done by Ricardo Mendonza (ricardo.mendoza@canonical.com).

Return EINVAL if mutex is invalid (instead of crashing with a segfault).