浏览代码

video: of: display_timing: double free on error

The display_timings_release() function frees "disp" and we free it
again on the next line.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Dan Carpenter 11 年之前
父节点
当前提交
62795a0d81
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      drivers/video/of_display_timing.c

+ 1 - 0
drivers/video/of_display_timing.c

@@ -236,6 +236,7 @@ timingfail:
 	if (native_mode)
 		of_node_put(native_mode);
 	display_timings_release(disp);
+	disp = NULL;
 entryfail:
 	kfree(disp);
 dispfail: