summaryrefslogtreecommitdiff
path: root/include/net/bluetooth/bluetooth.h
diff options
context:
space:
mode:
authorHagar Hemdan <hagarhem@amazon.com>2024-04-23 16:59:26 +0300
committerArd Biesheuvel <ardb@kernel.org>2024-04-29 18:47:32 +0300
commit4b2543f7e1e6b91cfc8dd1696e3cdf01c3ac8974 (patch)
treee29b2734320e8c004c16072a8065c1ede1a49868 /include/net/bluetooth/bluetooth.h
parentcda30c6542c8bb445bc84f6616cac8d012547f0a (diff)
downloadlinux-4b2543f7e1e6b91cfc8dd1696e3cdf01c3ac8974.tar.xz
efi: libstub: only free priv.runtime_map when allocated
priv.runtime_map is only allocated when efi_novamap is not set. Otherwise, it is an uninitialized value. In the error path, it is freed unconditionally. Avoid passing an uninitialized value to free_pool. Free priv.runtime_map only when it was allocated. This bug was discovered and resolved using Coverity Static Analysis Security Testing (SAST) by Synopsys, Inc. Fixes: f80d26043af9 ("efi: libstub: avoid efi_get_memory_map() for allocating the virt map") Cc: <stable@vger.kernel.org> Signed-off-by: Hagar Hemdan <hagarhem@amazon.com> Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Diffstat (limited to 'include/net/bluetooth/bluetooth.h')
0 files changed, 0 insertions, 0 deletions