drm: fix up mmap locking in preparation for ttm changes
authorThomas Hellstrom <thomas-at-tungstengraphics-dot-com>
Sat, 24 Mar 2007 06:52:49 +0000 (17:52 +1100)
committerDave Airlie <airlied@linux.ie>
Sat, 24 Mar 2007 07:00:22 +0000 (18:00 +1100)
commitd7d8aac79dc38cbdef83b774e49bafdae9918137
tree45eb61fb816117ac0913fbe63d2e430bbfaa65a2
parent040ac32048d5efabd557c1e0a6ab8aec2c710c56
drm: fix up mmap locking in preparation for ttm changes

This change is needed to protect againt disappearing maps which aren't common.
The map lists are protected using sturct_mutex but drm_mmap never locked it.

Signed-off-by: Dave Airlie <airlied@linux.ie>
drivers/char/drm/drm_vm.c