diff options
author | Sudeep Holla <[email protected]> | 2023-02-23 13:57:42 +0000 |
---|---|---|
committer | Catalin Marinas <[email protected]> | 2023-02-24 14:21:49 +0000 |
commit | 1b561d3949f8478c5403c9752b5533211a757226 (patch) | |
tree | 849ce6f588deed10dba0b262413338353d2a1280 /lib/test_fortify/write_overflow-strscpy.c | |
parent | 060a2c92d1b627c86c5c42ca69baf00457c00c5a (diff) |
arm64: acpi: Fix possible memory leak of ffh_ctxt
Allocated 'ffh_ctxt' memory leak is possible if the SMCCC version
and conduit checks fail and -EOPNOTSUPP is returned without freeing the
allocated memory.
Fix the same by moving the allocation after the SMCCC version and
conduit checks.
Fixes: 1d280ce099db ("arm64: Add architecture specific ACPI FFH Opregion callbacks")
Cc: <[email protected]> # 6.2.x
Cc: Will Deacon <[email protected]>
Reported-by: kernel test robot <[email protected]>
Reported-by: Dan Carpenter <[email protected]>
Suggested-by: Dan Carpenter <[email protected]>
Link: https://lore.kernel.org/r/[email protected]/
Signed-off-by: Sudeep Holla <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Catalin Marinas <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strscpy.c')
0 files changed, 0 insertions, 0 deletions