Merge "disp: msm: sde: use vzalloc for large allocations"
This commit is contained in:
committed by
Gerrit - the friendly Code Review server
commit
e01dff0b2e
@@ -1,6 +1,6 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
/*
|
||||
* Copyright (c) 2021-2022 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
* Copyright (c) 2021-2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
* Copyright (c) 2017-2021, The Linux Foundation. All rights reserved.
|
||||
*/
|
||||
|
||||
@@ -4631,7 +4631,7 @@ void reg_dmav2_setup_dspp_3d_gamutv43(struct sde_hw_dspp *ctx, void *cfg)
|
||||
if (len % transfer_size_bytes)
|
||||
len = len + (transfer_size_bytes - len % transfer_size_bytes);
|
||||
|
||||
data = kvzalloc(len, GFP_KERNEL);
|
||||
data = vzalloc(len);
|
||||
if (!data)
|
||||
return;
|
||||
|
||||
@@ -4707,7 +4707,7 @@ void reg_dmav2_setup_dspp_3d_gamutv43(struct sde_hw_dspp *ctx, void *cfg)
|
||||
_perform_sbdma_kickoff(ctx, hw_cfg, dma_ops, blk, GAMUT);
|
||||
|
||||
exit:
|
||||
kvfree(data);
|
||||
vfree(data);
|
||||
}
|
||||
|
||||
void reg_dmav2_setup_vig_gamutv61(struct sde_hw_pipe *ctx, void *cfg)
|
||||
|
||||
Reference in New Issue
Block a user