Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
telemetry: fix race on callbacks list
[ upstream commit 0489602 ] The list_commands() function accessed the callbacks list, but did not take the lock. This may have caused inconsistencies if callbacks were being registered at the same time. This is now fixed to lock before iterating the list, and unlock afterwards. Fixes: f387487 ("telemetry: add default callback commands") Reported-by: David Marchand <david.marchand@redhat.com> Signed-off-by: Ciara Power <ciara.power@intel.com> Acked-by: Bruce Richardson <bruce.richardson@intel.com>
- Loading branch information