rem: status = mutex_init(&locking->mutex, "advisory locking"); if (status < B_OK)
add: locking->lock = create_sem(1, "advisory locking"); if (locking->lock < B_OK) { status = locking->lock;
context: create_advisory_locking(struct vnode *vnode){	status_t status;	struct advisory_locking *locking = (struct advisory_locking *)malloc(sizeof(struct advisory_locking));	if (locking == NULL)		return B_NO_MEMORY;	locking->wait_sem = create_sem(0, "advisory lock");	if (locking->wait_sem < B_OK) {		status = locking->wait_sem;		goto err1;	}	status = mutex_init(&locking->mutex, "advisory locking");	if (status < B_OK)		goto err2;	list_init(&locking->locks);	vnode->advisory_locking = locking;	return B_OK;err2:	delete_sem(locking->wait_sem);err1:	free(locking);	return status;}