John Zhao has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/44185 )
Change subject: drivers/usb: Avoid value overwritten before its usage
......................................................................
drivers/usb: Avoid value overwritten before its usage
Coverity detects that value assigned to variable "ret" is overwritten
before it is used. Fix the issue by returning right value.
Found-by: Coverity CID 1255942, 1241836
TEST=None
Signed-off-by: John Zhao <john.zhao(a)intel.com>
Change-Id: I2e1fb5400ff64c6178bb30601896780f8d67b5c6
---
M src/drivers/usb/ehci_debug.c
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/85/44185/1
diff --git a/src/drivers/usb/ehci_debug.c b/src/drivers/usb/ehci_debug.c
index 5998172..3a52cca 100644
--- a/src/drivers/usb/ehci_debug.c
+++ b/src/drivers/usb/ehci_debug.c
@@ -581,7 +581,7 @@
ctrl = read32(&ehci_debug->control);
ctrl &= ~(DBGP_CLAIM | DBGP_OUT);
write32(&ehci_debug->control, ctrl);
- //return ret;
+ return ret;
next_debug_port:
if (CONFIG_USBDEBUG_DEFAULT_PORT == 0) {
--
To view, visit https://review.coreboot.org/c/coreboot/+/44185
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I2e1fb5400ff64c6178bb30601896780f8d67b5c6
Gerrit-Change-Number: 44185
Gerrit-PatchSet: 1
Gerrit-Owner: John Zhao <john.zhao(a)intel.com>
Gerrit-MessageType: newchange
Hello Felix Singer,
I'd like you to do a code review. Please visit
https://review.coreboot.org/c/coreboot/+/44176
to review the following change.
Change subject: libpayload/defconfig: Set default heap size to 1MiB
......................................................................
libpayload/defconfig: Set default heap size to 1MiB
libpayload's drivers keeps growing. With certain hardware/payload
combinations (last time witnessed with Kontron/bSL6 and FILO), the
default configuration runs out of memory.
As there is a lot enabled by default, also set a big default heap size.
Tested with FILO on QEMU/Q35.
Change-Id: I51a1514097aeb8b3c835a2387db66869b81d0bcc
Signed-off-by: Nico Huber <nico.huber(a)secunet.com>
---
M payloads/libpayload/configs/defconfig
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/76/44176/1
diff --git a/payloads/libpayload/configs/defconfig b/payloads/libpayload/configs/defconfig
index 896039e..4ef1ed1 100644
--- a/payloads/libpayload/configs/defconfig
+++ b/payloads/libpayload/configs/defconfig
@@ -5,4 +5,4 @@
CONFIG_LP_USB_OHCI=y
CONFIG_LP_USB_EHCI=y
CONFIG_LP_USB_XHCI=y
-CONFIG_LP_HEAP_SIZE=262144
+CONFIG_LP_HEAP_SIZE=1048576
--
To view, visit https://review.coreboot.org/c/coreboot/+/44176
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I51a1514097aeb8b3c835a2387db66869b81d0bcc
Gerrit-Change-Number: 44176
Gerrit-PatchSet: 1
Gerrit-Owner: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Felix Singer <felixsinger(a)posteo.net>
Gerrit-MessageType: newchange