diff options
| author | Andrew Goodbody <[email protected]> | 2025-07-02 11:01:36 +0100 |
|---|---|---|
| committer | Ilias Apalodimas <[email protected]> | 2025-07-03 11:32:49 +0300 |
| commit | 9d95a35715fcb8e81ee423e31273489a47ed1563 (patch) | |
| tree | 0712f1fcf7ad7315ae97f3ec8a142ce9dbe18826 /scripts/checkstack.pl | |
| parent | 4e103418bed6374b9aa43d067cee704d7e745dc9 (diff) | |
efi_loader: Prevent dereferencing NULL pointer
Taking the first goto error: in file_open could either result in an
attempt to dereference fh when NULL or else free fh->path which has
not been assigned to and so will be unknown. Avoid both of these
problems by passing path to free instead of fh->path.
This issue found by Smatch.
Reviewed-by: Ilias Apalodimas <[email protected]>
Reviewed-by: Heinrich Schuchardt <[email protected]>
Signed-off-by: Andrew Goodbody <[email protected]>
Signed-off-by: Ilias Apalodimas <[email protected]>
Diffstat (limited to 'scripts/checkstack.pl')
0 files changed, 0 insertions, 0 deletions
