drm sis: initialize object_idr
authorMárton Németh <nm127@freemail.hu>
Mon, 11 Jun 2012 17:09:25 +0000 (19:09 +0200)
committerDave Airlie <airlied@redhat.com>
Sat, 16 Jun 2012 10:18:53 +0000 (11:18 +0100)
commit648ccc7d35e3416fdc739d2e520e85de3125361b
tree2e01668b72e8587662d8cf3c80145db571ddf6e1
parentce020ea53264f1460ae619cfc12f968dbd0b8974
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>
drivers/gpu/drm/sis/sis_drv.c