Fixed a cut-and-paste bug that could cause an oops in mga_do_cleanup_dma

when mga_do_init_dma fails. Still trying to determine why
    mga_do_init_dma is failing.
Signed-off-by: Ian Romanick <idr@us.ibm.com>
main
Ian Romanick 2005-10-14 01:25:38 +00:00
parent 725e329cb2
commit 1505e316af
1 changed files with 2 additions and 2 deletions

View File

@ -926,7 +926,7 @@ static int mga_do_cleanup_dma(drm_device_t * dev)
drm_mga_private_t *dev_priv = dev->dev_private; drm_mga_private_t *dev_priv = dev->dev_private;
if ((dev_priv->warp != NULL) if ((dev_priv->warp != NULL)
&& (dev_priv->mmio->type != _DRM_CONSISTENT)) && (dev_priv->warp->type != _DRM_CONSISTENT))
drm_core_ioremapfree(dev_priv->warp, dev); drm_core_ioremapfree(dev_priv->warp, dev);
if ((dev_priv->primary != NULL) if ((dev_priv->primary != NULL)