Karthik Ramasubramanian has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/40836 )
Change subject: mb/google/dedede: Read DRAM part number from CBI
......................................................................
Patch Set 2: Code-Review+2
(1 comment)
https://review.coreboot.org/c/coreboot/+/40836/2/src/mainboard/google/dedede...
File src/mainboard/google/dedede/romstage.c:
https://review.coreboot.org/c/coreboot/+/40836/2/src/mainboard/google/dedede...
PS2, Line 42: strlen(part_num_store)
And refer to [1], it is processed by strncpy and MIN(sizeof(dimm->module_part_number), module_part_n […]
I was wondering whether google_chromeec_cbi_get_dram_part_num puts in a NUL terminated string. It seems it is doing so.
Also sizeof is a compile-time expression whereas strlen needs to determine the size at run-time.
Anyways I am fine either ways.
--
To view, visit
https://review.coreboot.org/c/coreboot/+/40836
To unsubscribe, or for help writing mail filters, visit
https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I40780a35e04efb279591e9db179cb86b5e907c0d
Gerrit-Change-Number: 40836
Gerrit-PatchSet: 2
Gerrit-Owner: Marco Chen
marcochen@google.com
Gerrit-Reviewer: Furquan Shaikh
furquan@google.com
Gerrit-Reviewer: Justin TerAvest
teravest@chromium.org
Gerrit-Reviewer: Karthik Ramasubramanian
kramasub@google.com
Gerrit-Reviewer: Marco Chen
marcochen@chromium.org
Gerrit-Reviewer: Patrick Georgi
pgeorgi@google.com
Gerrit-Reviewer: build bot (Jenkins)
no-reply@coreboot.org
Gerrit-CC: Paul Menzel
paulepanter@users.sourceforge.net
Gerrit-Comment-Date: Fri, 01 May 2020 06:43:32 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: Marco Chen
marcochen@google.com
Comment-In-Reply-To: Karthik Ramasubramanian
kramasub@google.com
Gerrit-MessageType: comment