提交 d75758b3 编写于 作者: D Dan Carpenter 提交者: Greg Kroah-Hartman

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: NDan Carpenter <error27@gmail.com>
Signed-off-by: NAlan Cox <alan@linux.intel.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 fc5ace7e
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册