commit | 3dd3a9ccbbc65e43034c7ec932ec5bd5256d4b1e | [log] [tgz] |
---|---|---|
author | Daniel Jarai <jaraidaniel@gmail.com> | Sat Dec 30 12:26:17 2017 +0100 |
committer | Jackeagle <jackeagle102@gmail.com> | Thu Mar 22 03:11:48 2018 -0400 |
tree | 46d41cb7e37292bc6ca9104844912e07b9934303 | |
parent | fe72fbba33e68d3de7462f96f7ff294acba1c485 [diff] |
bcm2079x: fix crash in userial_close_thread() On Oreo, calling pthread_join() on an exited thread results in a crash. Fix this by only calling pthread_join() if the thread didn't exit yet, with the help of a C11 atomic bool. Eliminates a frequent crash happening while turning off NFC. Change-Id: Ief322eb9907fa2dbb1893915830d5c5bc69d4f03