mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
nvgpu_kzalloc can fail in gv11b_init_eng_method_buffers. Added checks on returned pointer. Also changed g->ops.tsg.init_eng_method_buffers to return an int, and check return value in callers. Jira NVGPU-3788 Change-Id: Icb541665c40b89d512929cc9cf9f6a3e7a0033db Signed-off-by: Thomas Fleury <tfleury@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2205851 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>