[DPDK/ethdev Bug 1549] free() of non rte_malloc() memory in DMA dev
bugzilla at dpdk.org
bugzilla at dpdk.org
Wed Sep 25 18:28:51 CEST 2024
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: dev at dpdk.org
Reporter: stephen at networkplumber.org
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);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mails.dpdk.org/archives/dev/attachments/20240925/ffd3d172/attachment.htm>
More information about the dev
mailing list