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

2020-05-06 Thread Sam Ravnborg
Hi Christophe On Mon, Apr 27, 2020 at 11:19:45AM +0200, Christophe JAILLET wrote: > Some memory is vmalloc'ed in the 'suspend' function and freed in the > 'resume' function. > However, it is also freed in the remove function. > > In order to avoid a potential double free, set the corresponding poi

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

2020-04-28 Thread Christophe JAILLET
Some memory is vmalloc'ed in the 'suspend' function and freed in the 'resume' function. 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 'resume' function. Fixes: aac51f09d96a ("[PATCH] w100fb: Rew