mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2025-12-24 14:50:11 +01:00
i915: safety check the sarea map still exists
This commit is contained in:
parent
e6be93b2a6
commit
2d0411cb75
1 changed files with 3 additions and 1 deletions
|
|
@ -383,7 +383,9 @@ void i915_master_destroy(struct drm_device *dev, struct drm_master *master)
|
|||
if (!master_priv)
|
||||
return;
|
||||
|
||||
drm_rmmap(dev, master_priv->sarea);
|
||||
if (master_priv->sarea)
|
||||
drm_rmmap(dev, master_priv->sarea);
|
||||
|
||||
drm_free(master_priv, sizeof(*master_priv), DRM_MEM_DRIVER);
|
||||
|
||||
master->driver_priv = NULL;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue