diff options
Diffstat (limited to 'drivers/gpu/drm/drm_auth.c')
| -rw-r--r-- | drivers/gpu/drm/drm_auth.c | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/drm_auth.c b/drivers/gpu/drm/drm_auth.c index 6e433d465f41..cf92a9ae8034 100644 --- a/drivers/gpu/drm/drm_auth.c +++ b/drivers/gpu/drm/drm_auth.c @@ -140,14 +140,14 @@ struct drm_master *drm_master_create(struct drm_device *dev)  	kref_init(&master->refcount);  	drm_master_legacy_init(master); -	idr_init(&master->magic_map); +	idr_init_base(&master->magic_map, 1);  	master->dev = dev;  	/* initialize the tree of output resource lessees */  	INIT_LIST_HEAD(&master->lessees);  	INIT_LIST_HEAD(&master->lessee_list);  	idr_init(&master->leases); -	idr_init(&master->lessee_idr); +	idr_init_base(&master->lessee_idr, 1);  	return master;  }  |