]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drm: set dev_mapping before calling drm_open_helper
authorIlija Hadzic <ilijahadzic@gmail.com>
Mon, 29 Oct 2012 17:35:01 +0000 (17:35 +0000)
committerDave Airlie <airlied@redhat.com>
Wed, 7 Nov 2012 00:51:15 +0000 (10:51 +1000)
commitfdb40a08ef7bc970899c3a1f471165f9c22763a1
tree70426eb405d29964713c9954cb116027152f8a8a
parent0f1cb1bd94a9c967cd4ad3de51cfdabe61eb5dcc
drm: set dev_mapping before calling drm_open_helper

Some drivers (specifically vmwgfx) look at dev_mapping
in their open hook, so we have to set dev->dev_mapping
earlier in the process.

Reference:
http://lists.freedesktop.org/archives/dri-devel/2012-October/029420.html

Signed-off-by: Ilija Hadzic <ihadzic@research.bell-labs.com>
Reported-by: Thomas Hellstrom <thellstrom@vmware.com>
Cc: stable@vger.kernel.org
Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_fops.c