aboutsummaryrefslogtreecommitdiff
path: root/io
diff options
context:
space:
mode:
authorStephen Checkoway <stephen.checkoway@oberlin.edu>2019-02-19 10:37:27 -0500
committerLaurent Vivier <laurent@vivier.eu>2019-03-06 10:37:23 +0100
commitd80cf1eb2e87df3a9bfb226bcc7fb3a1aa858817 (patch)
tree6b059a4fc081834da97ba72aac30330d8c274321 /io
parent7d9b68acb37059bee347ce7e4c783ca5b7cf7ae0 (diff)
downloadqemu-d80cf1eb2e87df3a9bfb226bcc7fb3a1aa858817.zip
qemu-d80cf1eb2e87df3a9bfb226bcc7fb3a1aa858817.tar.gz
qemu-d80cf1eb2e87df3a9bfb226bcc7fb3a1aa858817.tar.bz2
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>
Diffstat (limited to 'io')
0 files changed, 0 insertions, 0 deletions