瀏覽代碼

V4L/DVB (6122): ivtvfb: fix an obvious bug in ivtvfb_release_buffers()

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Adrian Bunk 18 年之前
父節點
當前提交
136280322d
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      drivers/media/video/ivtv/ivtvfb.c

+ 2 - 2
drivers/media/video/ivtv/ivtvfb.c

@@ -1064,8 +1064,8 @@ static void ivtvfb_release_buffers (struct ivtv *itv)
 	struct osd_info *oi = itv->osd_info;
 	struct osd_info *oi = itv->osd_info;
 
 
 	/* Release cmap */
 	/* Release cmap */
-	if (oi->ivtvfb_info.cmap.len);
-	fb_dealloc_cmap(&oi->ivtvfb_info.cmap);
+	if (oi->ivtvfb_info.cmap.len)
+		fb_dealloc_cmap(&oi->ivtvfb_info.cmap);
 
 
 	/* Release pseudo palette */
 	/* Release pseudo palette */
 	if (oi->ivtvfb_info.pseudo_palette)
 	if (oi->ivtvfb_info.pseudo_palette)