projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
49078f7
)
agp/intel: Fix wrong kunmap in i830_cleanup()
author
Takashi Iwai
<
[email protected]
>
Sat, 4 Dec 2010 15:13:06 +0000
(16:13 +0100)
committer
Chris Wilson
<
[email protected]
>
Sun, 5 Dec 2010 10:40:17 +0000
(10:40 +0000)
Add a missing NULL check and fix the wrong address passed to kunmap()
in i830_cleanup().
Cc:
[email protected]
Signed-off-by: Takashi Iwai <
[email protected]
>
[danvet: added cc stable]
Signed-off-by: Daniel Vetter <
[email protected]
>
Signed-off-by: Chris Wilson <
[email protected]
>
drivers/char/agp/intel-gtt.c
patch
|
blob
|
history
diff --git
a/drivers/char/agp/intel-gtt.c
b/drivers/char/agp/intel-gtt.c
index 9272c38dd3c6ce8a66e9e0d2b0a5085ddd2973a7..16a2847b7cdbfeee43c9dcd212915a2f6b500711 100644
(file)
--- a/
drivers/char/agp/intel-gtt.c
+++ b/
drivers/char/agp/intel-gtt.c
@@
-812,8
+812,10
@@
static int intel_fake_agp_fetch_size(void)
static void i830_cleanup(void)
{
- kunmap(intel_private.i8xx_page);
- intel_private.i8xx_flush_page = NULL;
+ if (intel_private.i8xx_flush_page) {
+ kunmap(intel_private.i8xx_flush_page);
+ intel_private.i8xx_flush_page = NULL;
+ }
__free_page(intel_private.i8xx_page);
intel_private.i8xx_page = NULL;