On 2018-05-02 14:39, Andreas J. Reichel wrote: > From: Andreas Reichel <[email protected]> > > This patch series fixes a bug regarding user variables: The caller of > map_uservar must be sure that the data pointer is not NULL. > > Furthermore it introduces a garbage collector to > ebg_env_finalize_update, so that the user can register arbitrary user > variables, which automatically get deleted upon finalization. > > diff to v3: > > * ebg_env_get now returns -ENOENT if a user variable is not found > instead of -EINVAL. > > * gc_register_var is now renamed to register_gc_var > > Signed-off-by: Andreas Reichel <[email protected]> > > Andreas Reichel (4): > Bugfix: Don't map non-existing user variables > Add registry for garbage collection on update finalization > Tests: Add test for finalization garbage collector > env: uservars: return -ENOENT if not found > > env/env_api.c | 45 +++++++++++++++++++++++++++++- > env/env_api_fat.c | 3 ++ > env/uservars.c | 2 +- > include/ebgenv.h | 8 ++++++ > include/env_api.h | 5 ++++ > tools/tests/test_ebgenv_api.c | 52 ++++++++++++++++++++++++++++++++++- > 6 files changed, 112 insertions(+), 3 deletions(-) >
Thanks, merged to next. Jan -- Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux -- You received this message because you are subscribed to the Google Groups "EFI Boot Guard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/efibootguard-dev/4a6adaf9-42a3-e6e5-4b17-517be5f6e4eb%40siemens.com. For more options, visit https://groups.google.com/d/optout.
