Skip to content

Commit

Permalink
drm/radeon: use locked rmmap to remove sarea mapping.
Browse files Browse the repository at this point in the history
this exports the locked version of the symbol as struct_mutex locks it all.

Signed-off-by: Dave Airlie <airlied@redhat.com>
  • Loading branch information
Dave Airlie authored and Dave Airlie committed Dec 29, 2008
1 parent 60f2ee0 commit 4e74f36
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions drivers/gpu/drm/drm_bufs.c
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,7 @@ int drm_rmmap_locked(struct drm_device *dev, drm_local_map_t *map)

return 0;
}
EXPORT_SYMBOL(drm_rmmap_locked);

int drm_rmmap(struct drm_device *dev, drm_local_map_t *map)
{
Expand Down
2 changes: 1 addition & 1 deletion drivers/gpu/drm/radeon/radeon_cp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1804,7 +1804,7 @@ void radeon_master_destroy(struct drm_device *dev, struct drm_master *master)

master_priv->sarea_priv = NULL;
if (master_priv->sarea)
drm_rmmap(dev, master_priv->sarea);
drm_rmmap_locked(dev, master_priv->sarea);

drm_free(master_priv, sizeof(*master_priv), DRM_MEM_DRIVER);

Expand Down

0 comments on commit 4e74f36

Please sign in to comment.