Merge pull request #296 from micrakow/sec_rev_fixes

Env fixes & more
This commit is contained in:
Adam Rutkowski
2019-09-30 17:42:40 +02:00
committed by GitHub
15 changed files with 100 additions and 34 deletions

4
env/posix/ocf_env.h vendored
View File

@@ -450,9 +450,9 @@ typedef struct {
pthread_spinlock_t lock;
} env_spinlock;
static inline void env_spinlock_init(env_spinlock *l)
static inline int env_spinlock_init(env_spinlock *l)
{
ENV_BUG_ON(pthread_spin_init(&l->lock, 0));
return pthread_spin_init(&l->lock, 0);
}
static inline int env_spinlock_trylock(env_spinlock *l)