Skip to content

Commit

Permalink
gma500: reversed test in mdfld_dbi_dsr_exit()
Browse files Browse the repository at this point in the history
We should only cleanup "dsr_info" if it's non-NULL obviously and not
the other way around.

Signed-off-by: Dan Carpenter <[email protected]>
Signed-off-by: Alan Cox <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
error27 authored and gregkh committed Jul 8, 2011
1 parent fc5ace7 commit d75758b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/gma500/mdfld_dsi_dbi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d75758b

Please sign in to comment.