Error handling for env_rwsem_init added

Signed-off-by: Michal Rakowski <michal.rakowski@intel.com>
This commit is contained in:
Michal Rakowski
2019-09-27 15:21:53 +02:00
parent b78557a2cc
commit 2575be83fa
3 changed files with 19 additions and 11 deletions

View File

@@ -50,7 +50,7 @@ int ocf_async_lock_init(struct ocf_async_lock *lock, uint32_t waiter_priv_size)
int err = 0;
err = env_spinlock_init(&lock->waiters_lock);
if (err);
if (err)
return err;
INIT_LIST_HEAD(&lock->waiters);