commit | 347bbf79d20e1cff57075a8a378355dfac2475e2 | [log] [tgz] |
---|---|---|
author | Olivier Houchard <cognet@ci0.org> | Mon Jun 29 19:52:01 2020 +0200 |
committer | Olivier Houchard <cognet@ci0.org> | Mon Jun 29 19:59:06 2020 +0200 |
tree | 44af555eba340f7a886f60095958969dd754a8d9 | |
parent | f21695bd8b59d582efc99c85f9a1afac200eda81 [diff] |
BUG/MEDIUM: lists: Lock the element while we check if it is in a list. In MT_LIST_ADDQ() and MT_LIST_ADD() we can't just check if the element is already in a list, because there's a small race condition, it could be added between the time we checked, and the time we actually set its next and prev. So we have to lock it first. This should be backported to 2.1.