Skip to content

Commit 648ccc7

Browse files
nmarci1airlied
authored andcommitted
drm sis: initialize object_idr
The filed object_idr of struct drm_sis_private was introduced with commit http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=commitdiff;h=6de8a748881f1cd9d795454da2b6db616d5ca3d7 . The idr_init(&dev->object_name_idr) is called instead of idr_init(&dev_priv->object_idr) by mistake, leaving object_idr uninitialized. Correct this. This patch was not tested because of lack of hardware. Signed-off-by: Márton Németh <nm127@freemail.hu> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Cc: stable@vger.kernel.org Signed-off-by: Dave Airlie <airlied@redhat.com>
1 parent ce020ea commit 648ccc7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/gpu/drm/sis/sis_drv.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ static int sis_driver_load(struct drm_device *dev, unsigned long chipset)
4747
if (dev_priv == NULL)
4848
return -ENOMEM;
4949

50+
idr_init(&dev_priv->object_idr);
5051
dev->dev_private = (void *)dev_priv;
5152
dev_priv->chipset = chipset;
52-
idr_init(&dev->object_name_idr);
5353

5454
return 0;
5555
}

0 commit comments

Comments
 (0)