Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP1:GA
qemu-linux-user.3557
0294-net-eepro100-fix-memory-leak-in-dev.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0294-net-eepro100-fix-memory-leak-in-dev.patch of Package qemu-linux-user.3557
From 04086b5921dc3cecd4f69c127c24b48fdf4f8a04 Mon Sep 17 00:00:00 2001 From: Li Qiang <liqiang6-s@360.cn> Date: Sat, 8 Oct 2016 05:07:25 -0700 Subject: [PATCH] net: eepro100: fix memory leak in device uninit The exit dispatch of eepro100 network card device doesn't free the 's->vmstate' field which was allocated in device realize thus leading a host memory leak. This patch avoid this. Signed-off-by: Li Qiang <liqiang6-s@360.cn> Signed-off-by: Jason Wang <jasowang@redhat.com> (cherry picked from commit 2634ab7fe29b3f75d0865b719caf8f310d634aae) [BR: CVE-2016-9101 BSC#1007391] Signed-off-by: Bruce Rogers <brogers@suse.com> --- hw/net/eepro100.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/net/eepro100.c b/hw/net/eepro100.c index 7870db2..0c820c7 100644 --- a/hw/net/eepro100.c +++ b/hw/net/eepro100.c @@ -1864,6 +1864,7 @@ static void pci_nic_uninit(PCIDevice *pci_dev) memory_region_destroy(&s->io_bar); memory_region_destroy(&s->flash_bar); vmstate_unregister(&pci_dev->qdev, s->vmstate, s); + g_free(s->vmstate); eeprom93xx_free(&pci_dev->qdev, s->eeprom); qemu_del_nic(s->nic); }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor