agp/intel: Fix wrong kunmap in i830_cleanup()
authorTakashi Iwai <tiwai@suse.de>
Sat, 4 Dec 2010 15:13:06 +0000 (16:13 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Sun, 5 Dec 2010 10:40:17 +0000 (10:40 +0000)
commit136711be41ec97f7f1a9c3a5e8535eb7da5fea59
tree3be7da8694869adbb894f02b9edc1eab298c77da
parent49078f7d108f132582e5af46304c317b55f83948
agp/intel: Fix wrong kunmap in i830_cleanup()

Add a missing NULL check and fix the wrong address passed to kunmap()
in i830_cleanup().

Cc: stable@kernel.org
Signed-off-by: Takashi Iwai <tiwai@suse.de>
[danvet: added cc stable]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/char/agp/intel-gtt.c