Displaying 1 result from an estimated 1 matches for "gm20b_pmu_recv".
Did you mean:
gm200_pmu_recv
2017 Mar 10
0
[PATCH] secboot: fix NULL pointer dereference
...ssing msgqueue recv function\n");
return;
}
diff --git a/drm/nouveau/nvkm/subdev/pmu/gm20b.c b/drm/nouveau/nvkm/subdev/pmu/gm20b.c
index 48ae02d45656..44bef22bce52 100644
--- a/drm/nouveau/nvkm/subdev/pmu/gm20b.c
+++ b/drm/nouveau/nvkm/subdev/pmu/gm20b.c
@@ -27,6 +27,12 @@
static void
gm20b_pmu_recv(struct nvkm_pmu *pmu)
{
+ if (!pmu->queue) {
+ nvkm_warn(&pmu->subdev,
+ "recv function called while no firmware set!\n");
+ return;
+ }
+
nvkm_msgqueue_recv(pmu->queue);
}
--
2.12.0