5d8fe86db2
Using malloc would increase the heap use each time this function is called. Instead allocate a per struct device buffer inside the chip_info struct. Found by coverity scan, CID 1488815. Change-Id: Ie24870b34338624b3bf3a6f420debdd24a68ffbd Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/64338 Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Karthik Ramasubramanian <kramasub@google.com> |
||
---|---|---|
.. | ||
acpi | ||
hub | ||
pci_xhci | ||
Kconfig | ||
Makefile.inc | ||
console.c | ||
ehci.h | ||
ehci_debug.c | ||
ehci_debug.h | ||
gadget.c | ||
pci_ehci.c | ||
usb_ch9.h |