[PATCH] drm/sis: properly initialize dev_priv->object_idr
Daniel Vetter
daniel.vetter at ffwll.ch
Mon Jun 11 00:29:05 PDT 2012
Spotted while reviewing the same patch for drm/via by Németh Márton.
Cc: stable at vger.kernel.org
Signed-Off-by: Daniel Vetter <daniel.vetter at ffwll.ch>
---
drivers/gpu/drm/sis/sis_drv.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/sis/sis_drv.c b/drivers/gpu/drm/sis/sis_drv.c
index 30d98d1..c7263a4 100644
--- a/drivers/gpu/drm/sis/sis_drv.c
+++ b/drivers/gpu/drm/sis/sis_drv.c
@@ -49,7 +49,7 @@ static int sis_driver_load(struct drm_device *dev, unsigned long chipset)
dev->dev_private = (void *)dev_priv;
dev_priv->chipset = chipset;
- idr_init(&dev->object_name_idr);
+ idr_init(&dev_priv->object_idr);
return 0;
}
--
1.7.10
More information about the dri-devel
mailing list