mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 20:32:04 +09:00
Merge 7af0814097 ("Revert "gcov: clang: fix clang-11+ build"") into android-mainline
Upstream fix for build breakages of 5.12-rc8 on clang builds Signed-off-by: Greg Kroah-Hartman <gregkh@google.com> Change-Id: I1027544d1cdd7f01dd1b9f08af2113c0662d913a
This commit is contained in:
@@ -369,7 +369,7 @@ static struct gcov_fn_info *gcov_fn_info_dup(struct gcov_fn_info *fn)
|
||||
INIT_LIST_HEAD(&fn_dup->head);
|
||||
|
||||
cv_size = fn->num_counters * sizeof(fn->counters[0]);
|
||||
fn_dup->counters = kvmalloc(cv_size, GFP_KERNEL);
|
||||
fn_dup->counters = vmalloc(cv_size);
|
||||
if (!fn_dup->counters) {
|
||||
kfree(fn_dup);
|
||||
return NULL;
|
||||
|
||||
Reference in New Issue
Block a user