Skip to content

gallium/dri2: Move image->texture assignment after image NULL check.

Vinson Lee requested to merge vlee/mesa:fix-cid-1463872 into master

Fix defect reported by Coverity Scan.

Dereference before null check (REVERSE_INULL) check_after_deref: Null-checking image suggests that it may be null, but it has already been dereferenced on all paths leading to the check.

Fixes: ad609bf5 ("frontend/dri: Implement mapping individual planes.") Signed-off-by: Vinson Lee vlee@freedesktop.org

cc: @bnieuwenhuizen

Merge request reports