int drm_add_magic(drm_device_t *dev, drm_file_t *priv, drm_magic_t magic) 
static int drm_add_magic(drm_device_t *dev, drm_file_t *priv, drm_magic_t magic) 
int drm_add_magic(drm_device_t *dev, drm_file_t *priv, drm_magic_t magic){	int		  hash;	drm_magic_entry_t *entry;	DRM_DEBUG("%d\n", magic);	hash	     = drm_hash_magic(magic);	entry	     = drm_alloc(sizeof(*entry), DRM_MEM_MAGIC);	if (!entry) return -ENOMEM;	memset(entry, 0, sizeof(*entry));	entry->magic = magic;	entry->priv  = priv;	entry->next  = NULL;	down(&dev->struct_sem);	if (dev->magiclist[hash].tail) {		dev->magiclist[hash].tail->next = entry;		dev->magiclist[hash].tail	= entry;	} else {		dev->magiclist[hash].head	= entry;		dev->magiclist[hash].tail	= entry;	}	up(&dev->struct_sem);	return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/c94f70298529d99ac6e1ee7709f61eab00adeb39/drm_auth.c/buggy/drivers/char/drm/drm_auth.c