diff options
author | Arvind Sankar <[email protected]> | 2019-12-06 16:55:40 +0000 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2019-12-08 12:42:18 +0100 |
commit | ff397be685e410a59c34b21ce0c55d4daa466bb7 (patch) | |
tree | 2c1e66fc2ee2a256b06664127f1bb2236fd25e45 /scripts/gcc-plugins/cyc_complexity_plugin.c | |
parent | dbd89c303b4420f6cdb689fd398349fc83b059dd (diff) |
efi/gop: Fix memory leak in __gop_query32/64()
efi_graphics_output_protocol::query_mode() returns info in
callee-allocated memory which must be freed by the caller, which
we aren't doing.
We don't actually need to call query_mode() in order to obtain the
info for the current graphics mode, which is already there in
gop->mode->info, so just access it directly in the setup_gop32/64()
functions.
Also nothing uses the size of the info structure, so don't update the
passed-in size (which is the size of the gop_handle table in bytes)
unnecessarily.
Signed-off-by: Arvind Sankar <[email protected]>
Signed-off-by: Ard Biesheuvel <[email protected]>
Cc: Andy Shevchenko <[email protected]>
Cc: Bhupesh Sharma <[email protected]>
Cc: Masayoshi Mizuma <[email protected]>
Cc: [email protected]
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions