android_kernel_motorola_sm6375/drivers/video
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Christophe JAILLET d181dc3667 video: fbdev: w100fb: Fix a potential double free.
commit 18722d48a6bb9c2e8d046214c0a5fd19d0a7c9f6 upstream.

Some memory is vmalloc'ed in the 'w100fb_save_vidmem' function and freed in
the 'w100fb_restore_vidmem' function. (these functions are called
respectively from the 'suspend' and the 'resume' functions)

However, it is also freed in the 'remove' function.

In order to avoid a potential double free, set the corresponding pointer
to NULL once freed in the 'w100fb_restore_vidmem' function.

Fixes: aac51f09d9 ("[PATCH] w100fb: Rewrite for platform independence")
Cc: Richard Purdie <[email protected]>
Cc: Antonino Daplas <[email protected]>
Cc: Bartlomiej Zolnierkiewicz <[email protected]>
Cc: <[email protected]> # v2.6.14+
Signed-off-by: Christophe JAILLET <[email protected]>
Signed-off-by: Sam Ravnborg <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2020-06-17 16:40:33 +02:00
..
backlight
console vgacon: Fix a UAF in vgacon_invert_region 2020-03-12 13:00:19 +01:00
fbdev video: fbdev: w100fb: Fix a potential double free. 2020-06-17 16:40:33 +02:00
logo
display_timing.c
hdmi.c video/hdmi: Fix AVI bar unpack 2019-12-17 19:56:42 +01:00
Kconfig
Makefile
of_display_timing.c
of_videomode.c
vgastate.c
videomode.c