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:
Greg Kroah-Hartman
2021-04-20 17:11:54 +02:00

View File

@@ -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;