Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
block/pflash_cfi02: Fix memory leak and potential use-after-free
Don't dynamically allocate the pflash's timer. But do use timer_del in an unrealize function to make sure that the timer can't fire after the pflash_t has been freed. Signed-off-by: Stephen Checkoway <stephen.checkoway@oberlin.edu> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Reviewed-by: Wei Yang <richardw.yang@linux.intel.com> Message-Id: <20190219153727.62279-1-stephen.checkoway@oberlin.edu> Signed-off-by: Laurent Vivier <laurent@vivier.eu> (cherry picked from commit d80cf1e) *prereq for 1643406/3a283507 Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
- Loading branch information