diff options
| author | Wan Jiabing <[email protected]> | 2022-04-27 19:54:56 +0800 |
|---|---|---|
| committer | Zhi Wang <[email protected]> | 2022-04-28 17:06:02 -0400 |
| commit | 419f8299ddad6070a6c95aaedf78e50265871f36 (patch) | |
| tree | 5adcc74213b06d6d77a9d616a44179ddd29026b0 /drivers/usb/cdns3/cdns3-ti.c | |
| parent | 5b95b9d58fb0d7418c3d2d020099db789f66e7a1 (diff) | |
i915/gvt: Fix NULL pointer dereference in init_mmio_block_handlers
Fix following coccicheck error:
./drivers/gpu/drm/i915/gvt/handlers.c:2925:35-41: ERROR: block is NULL but dereferenced.
Use gvt->mmio.mmio_block instead of block to avoid NULL pointer
dereference when find_mmio_block returns NULL.
Fixes: e0f74ed4634d ("i915/gvt: Separate the MMIO tracking table from GVT-g")
Signed-off-by: Wan Jiabing <[email protected]>
Signed-off-by: Zhi Wang <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
Reviewed-by: Zhi Wang <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-ti.c')
0 files changed, 0 insertions, 0 deletions