Attention is currently required from: Anastasia Klimchuk, Dmitry Zhadinets.
5 comments:
Commit Message:
Patch Set #7, Line 7: mathching
typo
```suggestion
libflashrom: Add probing v2 which can find all matching chips
```
File cli_classic.c:
Patch Set #7, Line 1056: const char *** const all_matched_names = malloc(sizeof(char***));
There's no reason to dynamically allocate this pointer, just pass a pointer to a `const char **` into the probe function.
```
const char **all_matched_names = NULL;
flashrom_flash_probe_v2(flashes, &all_matched_names, ...);
```
File include/libflashrom.h:
needs to be freed with flashrom_data_free
* afterwards.
Does the caller also need to free the buffer if an error is returned?
Patch Set #7, Line 306: pointer to the empty list if no chips found.
Define what an empty list is: I think this is using NULL as a sentinel but the documentation should be very clear about it.
pointer to an array containing the names of all chips that were successfully probed, terminated with a NULL pointer. If no chips are found, the returned array contains a single NULL element. Callers must free the array once unused by calling flashrom_data_free.
File libflashrom.c:
Use NULL here so it's obvious this is a pointer.
To view, visit change 87341. To unsubscribe, or for help writing mail filters, visit settings.