mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-25 02:52:51 +03:00
gpu: nvgpu: nvs: fixed nvgpu buffer alloc null ptr
Changes - initialized g inside sched which was throwing null pointer issue. JIRA NVGPU-8692 Change-Id: I3a278ecb87ce2c4933297e04ab68a7183f40c67b Signed-off-by: vivekku <vivekku@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2767830 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
fb8bfb90c3
commit
4315132e7d
@@ -206,7 +206,7 @@ struct nvgpu_nvs_domain_ctrl_fifo *nvgpu_nvs_ctrl_fifo_create(struct gk20a *g)
|
||||
if (sched == NULL) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
sched->g = g;
|
||||
sched->capabilities.scheduler_implementation_hw = NVGPU_NVS_DOMAIN_SCHED_KMD;
|
||||
|
||||
nvgpu_spinlock_init(&sched->users.user_lock);
|
||||
|
||||
Reference in New Issue
Block a user