[PATCH V2] video: fbdev: w100fb: Fix a potential double free.

2020-05-07 Thread Christophe JAILLET
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,

Re: [PATCH V2] video: fbdev: w100fb: Fix a potential double free.

2020-05-06 Thread Sam Ravnborg
Hi Christophe On Wed, May 06, 2020 at 08:19:02PM +0200, Christophe JAILLET wrote: > 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) > > Howe