1 comment:
File src/security/vboot/common.c:
Patch Set #3, Line 44: static uint8_t use_cbmem CAR_GLOBAL;
I thought it was a slightly simpler solution. […]
We could also just simplify and get rid of the global altogether:
struct vb2_working_data *vb2_wd;
if (vb2_wd == NULL && cbmem_possibly_online())
vb2_wd = cbmem_find(CBMEM_ID_VBOOT_WORKBUF);
if (vb2_wd == NULL && VBOOT_PRE_RAM_SYMBOLS &&
pre_ram_symbols_accessible())
vb2_wd = (struct vb2_working_data *)_vboot2_work;
assert(vb2_wd != NULL);
return vb2_wd;
To view, visit change 31329. To unsubscribe, or for help writing mail filters, visit settings.