free() of non rte_malloc() memory in DMA dev
https://bugs.dpdk.org/show_bug.cgi?id=1549
Bug ID: 1549
Summary: free() of non rte_malloc() memory in DMA dev
Product: DPDK
Version: unspecified
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: major
Priority: Normal
Component: ethdev
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
If GCC checking of rte_malloc functions is added, then the following bug in the DMA device driver is shown:
[982/2957] Compiling C object drivers/libtmp_rte_dma_idxd.a.p/dma_idxd_idxd_pci.c.o
In function ‘init_pci_device’,
inlined from ‘idxd_dmadev_probe_pci’ at../drivers/dma/idxd/idxd_pci.c:362:8:../drivers/dma/idxd/idxd_pci.c:304:9: warning: ‘free’ called on pointer returned from a mismatched allocation function [-Wmismatched-dealloc]
304 | free(pci);
| ^~~~~~~~~
../drivers/dma/idxd/idxd_pci.c:182:15: note: returned from ‘rte_malloc’
182 | pci = rte_malloc(NULL, sizeof(*pci), 0);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/dma/idxd/idxd_pci.c:304:9: warning: ‘free’ called on pointer
returned from a mismatched allocation function [-Wmismatched-dealloc]
304 | free(pci);
| ^~~~~~~~~
../drivers/dma/idxd/idxd_pci.c:182:15: note: returned from ‘rte_malloc’
182 | pci = rte_malloc(NULL, sizeof(*pci), 0);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
https://bugs.dpdk.org/show_bug.cgi?id=1549
Thomas Monjalon ([email protected]) changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |FIXED--- Comment #1 from Thomas Monjalon ([email protected]) --- Resolved in http://git.dpdk.org/dpdk/commit/?id=91b026fb46
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.