summaryrefslogtreecommitdiff
path: root/msm/sde/sde_plane.c
diff options
context:
space:
mode:
Diffstat (limited to 'msm/sde/sde_plane.c')
-rw-r--r--msm/sde/sde_plane.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/msm/sde/sde_plane.c b/msm/sde/sde_plane.c
index e991cbe7..8b680783 100644
--- a/msm/sde/sde_plane.c
+++ b/msm/sde/sde_plane.c
@@ -1,4 +1,5 @@
/*
+ * Copyright (c) 2021-2022 Qualcomm Innovation Center, Inc. All rights reserved.
* Copyright (C) 2014-2020 The Linux Foundation. All rights reserved.
* Copyright (C) 2013 Red Hat
* Author: Rob Clark <robdclark@gmail.com>
@@ -3609,7 +3610,7 @@ static void _sde_plane_install_properties(struct drm_plane *plane,
"prefill_time", 0x0, 0, ~0, 0,
PLANE_PROP_PREFILL_TIME);
- info = kzalloc(sizeof(struct sde_kms_info), GFP_KERNEL);
+ info = vzalloc(sizeof(struct sde_kms_info));
if (!info) {
SDE_ERROR("failed to allocate info memory\n");
return;
@@ -3720,7 +3721,7 @@ static void _sde_plane_install_properties(struct drm_plane *plane,
info->data, SDE_KMS_INFO_DATALEN(info),
PLANE_PROP_INFO);
- kfree(info);
+ vfree(info);
if (psde->features & BIT(SDE_SSPP_MEMCOLOR)) {
snprintf(feature_name, sizeof(feature_name), "%s%d",