Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d75758b3 authored by Dan Carpenter's avatar Dan Carpenter Committed by Greg Kroah-Hartman
Browse files

gma500: reversed test in mdfld_dbi_dsr_exit()



We should only cleanup "dsr_info" if it's non-NULL obviously and not
the other way around.

Signed-off-by: default avatarDan Carpenter <error27@gmail.com>
Signed-off-by: default avatarAlan Cox <alan@linux.intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent fc5ace7e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;