diff options
author | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2025-07-08 13:37:32 +0200 |
---|---|---|
committer | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2025-07-26 07:37:03 +0200 |
commit | ca01c847f6c76fbcfc6e3b483b791f070621bda6 (patch) | |
tree | b46428f7d77b95e67edd83bff754678bbdb56019 /drivers/fpga/fpga.c | |
parent | 7e2506e3a247c787a9ad4b4db00bc8e6a348df90 (diff) |
efi_selftest: fix ESRT creation tests
The code foresees that parameters descriptor_size and descriptor_count
might be NULL and then dereferences them without further check.
The size check must take into account the descriptor count.
ImageInfo might be NULL. In this case we must not dereference it.
Fixes: 4ac6041c3cbf ("efi: ESRT creation tests")
Addresses-Coverity-ID: CID 569497: Null pointer dereferences (FORWARD_NULL)
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Diffstat (limited to 'drivers/fpga/fpga.c')
0 files changed, 0 insertions, 0 deletions