Allow root to pass magic authentication just like a regular user.

This commit is contained in:
Rik Faith 2000-05-26 16:21:29 +00:00
parent 837ea811fd
commit d7cd954dd6

View file

@ -45,7 +45,6 @@ static drm_file_t *drm_find_file(drm_device_t *dev, drm_magic_t magic)
down(&dev->struct_sem);
for (pt = dev->magiclist[hash].head; pt; pt = pt->next) {
if (pt->priv->authenticated) continue;
if (pt->magic == magic) {
retval = pt->priv;
break;