Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rimage: elf_file: Fix elf_free behavior on unopened elf file #8530

Merged
merged 2 commits into from
Nov 28, 2023

Commits on Nov 27, 2023

  1. rimage: elf_file: Fix elf_free behavior on unopened elf file

    If more modules are provided in a command line than defined in a toml file,
    the program outputs an error message. It frees the module structures
    even though they have not been opened before. This resulted in an error
    when trying to close a file that was not previously open. Added a check to
    ensure that a file has been opened before trying to close it.
    Error handling in the elf_open function has been simplified.
    
    Signed-off-by: Adrian Warecki <adrian.warecki@intel.com>
    softwarecki committed Nov 27, 2023
    Configuration menu
    Copy the full SHA
    e4637a3 View commit details
    Browse the repository at this point in the history
  2. rimage: module: Use file name in error message in module_write_whole_elf

    By oversight, the error message did not use the file name passed as a
    parameter to the module_write_whole_elf function.
    
    Signed-off-by: Adrian Warecki <adrian.warecki@intel.com>
    softwarecki committed Nov 27, 2023
    Configuration menu
    Copy the full SHA
    202693a View commit details
    Browse the repository at this point in the history