Skip to content
Commit 33a0b734 authored by Yu Liao's avatar Yu Liao Committed by Vinod Koul
Browse files

dmaengine: fsl-edma: use struct_size() helper



Make use of the struct_size() helper instead of an open-coded version,
in order to avoid any potential type mistakes or integer overflows that,
in the worst scenario, could lead to heap overflows.

Signed-off-by: default avatarYu Liao <liaoyu15@huawei.com>
Link: https://lore.kernel.org/r/20230821073600.4078584-1-liaoyu15@huawei.com


Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent 923b1383
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment