#ifdef CONFIG_INOTIFY atomic_set(&new->inotify_watches, 0); atomic_set(&new->inotify_devs, 0); #endif 
struct user_struct * alloc_uid(uid_t uid){	struct list_head *hashent = uidhashentry(uid);	struct user_struct *up;	spin_lock(&uidhash_lock);	up = uid_hash_find(uid, hashent);	spin_unlock(&uidhash_lock);	if (!up) {		struct user_struct *new;		new = kmem_cache_alloc(uid_cachep, SLAB_KERNEL);		if (!new)			return NULL;		new->uid = uid;		atomic_set(&new->__count, 1);		atomic_set(&new->processes, 0);		atomic_set(&new->files, 0);		atomic_set(&new->sigpending, 0);		new->mq_bytes = 0;		new->locked_shm = 0;		if (alloc_uid_keyring(new) < 0) {			kmem_cache_free(uid_cachep, new);			return NULL;		}		/*		 * Before adding this, check whether we raced		 * on adding the same user already..		 */		spin_lock(&uidhash_lock);		up = uid_hash_find(uid, hashent);		if (up) {			key_put(new->uid_keyring);			key_put(new->session_keyring);			kmem_cache_free(uid_cachep, new);		} else {			uid_hash_insert(new, hashent);			up = new;		}		spin_unlock(&uidhash_lock);	}	return up;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/0eeca28300df110bd6ed54b31193c83b87921443/user.c/buggy/kernel/user.c