Attention is currently required from: Sam McNally, Angel Pons. Peter Marheine has posted comments on this change. ( https://review.coreboot.org/c/flashrom/+/52405 )
Change subject: lspcon, realtek_mst: move i2c bus resolution from params to i2c_helper ......................................................................
Patch Set 9:
(1 comment)
File i2c_helper_linux.c:
https://review.coreboot.org/c/flashrom/+/52405/comment/0bf45914_ea2dba8c PS6, Line 42: char *dev = malloc(sizeof(I2C_DEV_PREFIX));
I see. Let me try another approach...
Have you had any interesting ideas?
It seem like the only alternative is to have the caller provide a buffer, which either needs to be large enough that we assume it's always large enough (PATH_MAX?), or provide a function that returns how long the string we want to return is and let the caller allocate enough space. In the latter case we're just moving who does the allocation so it doesn't seem worth adding the complexity of another function.