drm/amdgpu: validate userq input args

[ Upstream commit 219be4711a ]

This will help on validating the userq input args, and
rejecting for the invalid userq request at the IOCTLs
first place.

Signed-off-by: Prike Liang <Prike.Liang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Prike Liang 2025-05-14 12:43:57 +08:00 • committed by Greg Kroah-Hartman
commit bdaa7ad3a5
2 changed files with 56 additions and 32 deletions