Don't free driver mapped locks
authorJesse Barnes <jesse.barnes@intel.com>
Tue, 4 Dec 2007 22:38:00 +0000 (14:38 -0800)
committerJesse Barnes <jesse.barnes@intel.com>
Tue, 4 Dec 2007 22:38:00 +0000 (14:38 -0800)
commitf7432d187e4b5e13c9e450bf12d5ab8c18ea5146
tree24aefc4570033c47665baacb86a4f5e939e8a047
parent1a07dd5ffd014aae8f767ab1f5166131aa27ef3f
Don't free driver mapped locks

This fix is actually a bit of a cleanup too--it moves lock freeing to
drm_rmmap_locked and out of drm_lastclose.  This makes it symmetrical with
addmap and also prevents the lock from being incorrectly freed from driver
mappings.
linux-core/drm_bufs.c
linux-core/drm_drv.c