mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: fix the return value for falcon memcpy overflow case
Return value ret was not set to -EINVAL in case of out of range copy parameters. JIRA NVGPU-898 Change-Id: I5648afaeed37c24311b7cbfeed281cc13c1c6753 Signed-off-by: Sagar Kamble <skamble@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2143029 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
269fbec5c3
commit
e8a95fb423
@@ -319,6 +319,7 @@ static int falcon_memcpy_params_check(struct nvgpu_falcon *flcn,
|
||||
flcn->flcn_id);
|
||||
nvgpu_err(g, "total size 0x%x, offset 0x%x, copy size 0x%x",
|
||||
mem_size, offset, size);
|
||||
ret = -EINVAL;
|
||||
goto exit;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user