1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/gpu/drm/amd/display/dc/link
Lenko Donchev f634ee1737 drm/amd/display: Use kcalloc() instead of kzalloc()
We are trying to get rid of all multiplications from allocation
functions to prevent integer overflows. Here the multiplication is
obviously safe, but using kcalloc() is more appropriate and improves
readability. This patch has no effect on runtime behavior.

Link: https://www.kernel.org/doc/html/next/process/deprecated.html#open-coded-arithmetic-in-allocator-arguments
Link: https://github.com/KSPP/linux/issues/162

Reviewed-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Lenko Donchev <lenko.donchev@gmail.com>
Signed-off-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2024-02-22 10:28:32 -05:00
..
accessories drm/amd/display: Update FIXED_VS Retimer HWSS Test Pattern Sequences 2024-02-14 17:13:03 -05:00
hwss drm/amd/display: Update FIXED_VS Retimer HWSS Test Pattern Sequences 2024-02-14 17:13:03 -05:00
protocols drm/amd/display: Use kcalloc() instead of kzalloc() 2024-02-22 10:28:32 -05:00
link_detection.c drm/amd/display: Add usb4_bw_alloc_support flag 2024-01-22 17:13:27 -05:00
link_detection.h drm/amd/display: convert link.h functions to function pointer style 2023-03-14 15:35:03 -04:00
link_dpms.c drm/amd/display: Add usb4_bw_alloc_support flag 2024-01-22 17:13:27 -05:00
link_dpms.h drm/amd/display: convert link.h functions to function pointer style 2023-03-14 15:35:03 -04:00
link_factory.c drm/amd/display: Only allow dig mapping to pwrseq in new asic 2024-02-22 10:17:52 -05:00
link_factory.h drm/amd/display: convert link.h functions to function pointer style 2023-03-14 15:35:03 -04:00
link_hwss_hpo_frl.c drm/amd/display: extract set stream attribute to link_hwss 2022-04-05 10:29:48 -04:00
link_resource.c drm/amd/display: move public dc link function implementation to dc_link_exports 2023-02-14 16:06:28 -05:00
link_resource.h drm/amd/display: convert link.h functions to function pointer style 2023-03-14 15:35:03 -04:00
link_validation.c drm/amd/display: fixed integer types and null check locations 2024-02-14 17:13:28 -05:00
link_validation.h drm/amd/display: Add HDMI capacity computations using fixed31_32 2024-01-03 10:31:30 -05:00
Makefile drm/amd/display: Drop unused link FPGA code 2023-09-26 16:54:37 -04:00