]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc271eb6e7b661952d230caf709fb86a00448006d
tree2e01668b72e8587662d8cf3c80145db571ddf6e1
parenta3fc8ab70846b63ba4e2afc8ee936bc8b0d8d12a
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=9480f9d0dee815849e76a4c5ea607957d20362bc .

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