Skip to content

Commit

Permalink
drm/i915: opregion_setup: iounmap correct address
Browse files Browse the repository at this point in the history
In case of an opregion signature mismatch in intel_opregion_setup(),
iounmap the correct address.

Signed-off-by: Christoph Fritz <chf.fritz@googlemail.com>
Cc: stable@kernel.org
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
  • Loading branch information
Christoph Fritz authored and Chris Wilson committed Nov 1, 2010
1 parent 395b70b commit 30c5666
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/i915/intel_opregion.c
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,6 @@ int intel_opregion_setup(struct drm_device *dev)
return 0;

err_out:
iounmap(opregion->header);
iounmap(base);
return err;
}

0 comments on commit 30c5666

Please sign in to comment.