Skip to content

Commit

Permalink
V4L/DVB (6122): ivtvfb: fix an obvious bug in ivtvfb_release_buffers()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Adrian Bunk authored and Mauro Carvalho Chehab committed Oct 10, 2007
1 parent 641ed49 commit 1362803
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/media/video/ivtv/ivtvfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1064,8 +1064,8 @@ static void ivtvfb_release_buffers (struct ivtv *itv)
struct osd_info *oi = itv->osd_info;

/* 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 */
if (oi->ivtvfb_info.pseudo_palette)
Expand Down

0 comments on commit 1362803

Please sign in to comment.