Zero out the guard for bus_space_unmap before calling i915_dma_cleanup() which
calls i915_free_hws(), which then tries to unmap. Perhaps this fixes PR/50060.
This commit is contained in:
parent
dd5247cc50
commit
571f38dae1
|
@ -1137,8 +1137,8 @@ static int i915_set_status_page(struct drm_device *dev, void *data,
|
||||||
BUS_SPACE_MAP_PREFETCHABLE,
|
BUS_SPACE_MAP_PREFETCHABLE,
|
||||||
&dev_priv->dri1.gfx_hws_cpu_bsh);
|
&dev_priv->dri1.gfx_hws_cpu_bsh);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
i915_dma_cleanup(dev);
|
|
||||||
ring->status_page.gfx_addr = 0;
|
ring->status_page.gfx_addr = 0;
|
||||||
|
i915_dma_cleanup(dev);
|
||||||
DRM_ERROR("can not ioremap virtual address for"
|
DRM_ERROR("can not ioremap virtual address for"
|
||||||
" G33 hw status page\n");
|
" G33 hw status page\n");
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Loading…
Reference in New Issue