diff options
author | Christophe JAILLET <[email protected]> | 2020-05-06 20:19:02 +0200 |
---|---|---|
committer | Sam Ravnborg <[email protected]> | 2020-05-06 20:22:25 +0200 |
commit | 18722d48a6bb9c2e8d046214c0a5fd19d0a7c9f6 (patch) | |
tree | 647206bfdb3215f21be71722a7c4dfbcf6dc45c8 /scripts/gdb/linux/modules.py | |
parent | d163a95cf00130d8d980cbf16675337caeb9cdad (diff) |
video: fbdev: w100fb: Fix a potential double free.
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: aac51f09d96a ("[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]
Diffstat (limited to 'scripts/gdb/linux/modules.py')
0 files changed, 0 insertions, 0 deletions