summaryrefslogtreecommitdiff
path: root/sys/dev/pci/drm/amd
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2020-07-02 03:10:47 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2020-07-02 03:10:47 +0000
commit5b4974148c154976932305f38293d884fd9dc13f (patch)
treeeaaed11b69c9f661952931278c610302335781d0 /sys/dev/pci/drm/amd
parent9e2f6dd68649143e0a42b6d4b4901d867232a176 (diff)
drm/amd/display: Use kfree() to free rgb_user in calculate_user_regamma_ramp()
From Denis Efremov 7f5ee8efd85ec10914b324e4f2722dc4d22b12da in linux 5.7.y/5.7.7 43a562774fceba867e8eebba977d7d42f8a2eac7 in mainline linux
Diffstat (limited to 'sys/dev/pci/drm/amd')
-rw-r--r--sys/dev/pci/drm/amd/display/modules/color/color_gamma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/pci/drm/amd/display/modules/color/color_gamma.c b/sys/dev/pci/drm/amd/display/modules/color/color_gamma.c
index e89694eb90b..700f0039df7 100644
--- a/sys/dev/pci/drm/amd/display/modules/color/color_gamma.c
+++ b/sys/dev/pci/drm/amd/display/modules/color/color_gamma.c
@@ -1777,7 +1777,7 @@ bool calculate_user_regamma_ramp(struct dc_transfer_func *output_tf,
kfree(rgb_regamma);
rgb_regamma_alloc_fail:
- kvfree(rgb_user);
+ kfree(rgb_user);
rgb_user_alloc_fail:
return ret;
}