[OpenACC] Missing unlocking on error paths in attach/detach code
authorJulian Brown <julian@codesourcery.com>
Fri, 22 May 2020 22:16:04 +0000 (15:16 -0700)
committerThomas Schwinge <thomas@codesourcery.com>
Thu, 4 Jun 2020 16:56:36 +0000 (18:56 +0200)
commitdc9541545d9e5705a97c41713c557f55522b54dc
tree861b408db11b729222b2ac3021fb1219185382ac
parent1e378edd8f038c52914bc6cac8f6dd5a5c4f8a98
[OpenACC] Missing unlocking on error paths in attach/detach code

libgomp/
* oacc-mem.c (acc_attach_async): Add missing gomp_mutex_unlock on
error path.
(goacc_detach_internal): Likewise.

Reviewed-by: Thomas Schwinge <thomas@codesourcery.com>
libgomp/oacc-mem.c