projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de838d9
)
MLK-13739 video: mxsfb: use a pointer after free.
author
Guoniu.Zhou
<guoniu.zhou@nxp.com>
Wed, 11 Jan 2017 02:07:28 +0000
(10:07 +0800)
committer
Nitin Garg
<nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:58:20 +0000
(14:58 -0500)
In mxsfb_overlay_exit, a pointer to freed memory is dereferenced, used as a
function argument, exchange the reference and freed function position.
Signed-off-by: Guoniu.Zhou <guoniu.zhou@nxp.com>
drivers/video/fbdev/mxsfb.c
patch
|
blob
|
history
diff --git
a/drivers/video/fbdev/mxsfb.c
b/drivers/video/fbdev/mxsfb.c
index
e76bb31
..
b00ba51
100644
(file)
--- a/
drivers/video/fbdev/mxsfb.c
+++ b/
drivers/video/fbdev/mxsfb.c
@@
-1986,8
+1986,8
@@
static void mxsfb_overlay_exit(struct mxsfb_info *fbi)
dma_free_writecombine(ofb->dev, ofb->video_mem_size,
ofb->video_mem, ofb->video_mem_phys);
- framebuffer_release(ofb->ol_fb);
unregister_framebuffer(ofb->ol_fb);
+ framebuffer_release(ofb->ol_fb);
}
}
#else