Add missing unlock() of cg_mount_table_lock, reported by Coverity tool:
CID
1412126 (#1 of 1): Missing unlock (LOCK). missing_unlock:
Returning without unlocking cg_mount_table_lock.
Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
(cherry picked from commit
750388bda000a1ac00550ae400a4b5ace3dc1c37)
}
}
}
- if (!flag)
- return ECGNAMESPACECONTROLLER;
+ if (!flag) {
+ error = ECGNAMESPACECONTROLLER;
+ break;
+ }
}
error_out:
pthread_rwlock_unlock(&cg_mount_table_lock);