static inline void sem_getref(struct sem_array *sma)
{
	spin_lock(&(sma)->sem_perm.lock);
	ipc_rcu_getref(sma);
	ipc_unlock(&(sma)->sem_perm);
}
Weaknesses in this category are related to improper calculation or conversion of numbers.