Dan Carpenter
2017-Mar-14 07:56 UTC
[Nouveau] [bug report] drm/nouveau/falcon: add msgqueue interface
Hello Alexandre Courbot,
This is a semi-automatic email about new static checker warnings.
The patch 9b536e9d5251: "drm/nouveau/falcon: add msgqueue interface"
from Jan 19, 2017, leads to the following Smatch complaint:
drivers/gpu/drm/nouveau/nvkm/falcon/msgqueue.c:514 nvkm_msgqueue_recv()
error: we previously assumed 'queue' could be null (see line 513)
drivers/gpu/drm/nouveau/nvkm/falcon/msgqueue.c
512 {
513 if (!queue || !queue->func || !queue->func->recv) {
^^^^^^
Check.
514 const struct nvkm_subdev *subdev = queue->falcon->owner;
^^^^^^^^^^^^^
Dereference.
515
516 nvkm_warn(subdev,
regards,
dan carpenter
Maybe Matching Threads
- [PATCH] secboot: fix NULL pointer dereference
- [PATCH 3/8] core: add falcon library functions
- [PATCH] drm/nouveau/falcon: fix a few indentation issues
- Nouveau: kernel hang on Optimus+Intel+NVidia GeForce 1060m
- Nouveau: kernel hang on Optimus+Intel+NVidia GeForce 1060m
