2dfeebe265
Check return value of pthread_mutex_init(). Also destroy mutex in case of other erros before returning. Signed-off-by: Jens Freimann <jfreimann@redhat.com> Acked-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>