Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
eal/freebsd: fix lock in alarm callback
[ upstream commit fc6bdd5248e843ba1300c8d46d43b263b4a69438 ] The spinlock should unlock when clock_gettime() failed. This patch fixes it by invoking clock_gettime() before lock. Fixes: 26021a7 ("eal/bsd: support alarm API") Signed-off-by: Chengwen Feng <fengchengwen@huawei.com> Acked-by: Bruce Richardson <bruce.richardson@intel.com>
- Loading branch information