mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 18:16:01 +03:00
Asserting in the path of devctl processing is not safe here because incompr_kind can be passed out of range by a malicious app and it will cause nvgpu-rm to crash. Instead return error in case of out of range value. Jira NVGPU-6496 Change-Id: I9c3264776110f606a67f27ce7b01fdce82aa3021 Signed-off-by: shashank singh <shashsingh@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2485752 (cherry picked from commit 689054d65fff2c61b9f1d413eef4a44a5f27fc54) Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2492290 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
44 KiB
44 KiB