projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc5ace7
)
gma500: reversed test in mdfld_dbi_dsr_exit()
author
Dan Carpenter
<error27@gmail.com>
Fri, 8 Jul 2011 08:45:32 +0000
(09:45 +0100)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Fri, 8 Jul 2011 20:44:59 +0000
(13:44 -0700)
We should only cleanup "dsr_info" if it's non-NULL obviously and not
the other way around.
Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/gma500/mdfld_dsi_dbi.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/staging/gma500/mdfld_dsi_dbi.c
b/drivers/staging/gma500/mdfld_dsi_dbi.c
index 9d2d97db19613af3c71dfa74b8a40274ae36c1aa..4897345533170d2ee7d184a471e129bbd5024b36 100644
(file)
--- a/
drivers/staging/gma500/mdfld_dsi_dbi.c
+++ b/
drivers/staging/gma500/mdfld_dsi_dbi.c
@@
-642,7
+642,7
@@
void mdfld_dbi_dsr_exit(struct drm_device *dev)
struct drm_psb_private *dev_priv = dev->dev_private;
struct mdfld_dbi_dsr_info *dsr_info = dev_priv->dbi_dsr_info;
- if (
!
dsr_info) {
+ if (dsr_info) {
del_timer_sync(&dsr_info->dsr_timer);
kfree(dsr_info);
dev_priv->dbi_dsr_info = NULL;