diff options
| author | Markus Elfring <[email protected]> | 2023-04-16 06:18:40 +0000 |
|---|---|---|
| committer | Karol Herbst <[email protected]> | 2023-04-17 17:08:04 +0000 |
| commit | 488c1ce6a8f3d46e20440b2e240e096a20259fcc (patch) | |
| tree | bc22b79b2afac091278a3f2b81fc3fbf1a94468b /drivers/gpu/drm/scheduler/sched_entity.c | |
| parent | drm/nouveau/clk: Move a variable assignment behind a null pointer check in nv... (diff) | |
| download | kernel-488c1ce6a8f3d46e20440b2e240e096a20259fcc.tar.gz kernel-488c1ce6a8f3d46e20440b2e240e096a20259fcc.zip | |
drm/nouveau/pci: Move a variable assignment behind condition checks in nvkm_pcie_set_link()
The address of a data structure member was determined before
a corresponding null pointer check in the implementation of
the function “nvkm_pcie_set_link”.
Thus avoid the risk for undefined behaviour by moving the assignment
for the variable “subdev” behind some condition checks.
This issue was detected by using the Coccinelle software.
Signed-off-by: Markus Elfring <[email protected]>
Reviewed-by: Karol Herbst <[email protected]>
Signed-off-by: Karol Herbst <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/scheduler/sched_entity.c')
0 files changed, 0 insertions, 0 deletions
