linux/drivers/gpu/drm/panfrost
Tomeu Vizoso cc2e787ee7 drm/panfrost: Only put sync_out if non-NULL
Dan Carpenter's static analysis tool reported:

drivers/gpu/drm/panfrost/panfrost_drv.c:222 panfrost_ioctl_submit()
error: we previously assumed 'sync_out' could be null (see line 216)

Indeed, sync_out could be NULL if userspace doesn't send a sync object
ID for the out fence.

Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lists.freedesktop.org/archives/dri-devel/2019-May/217014.html
Reviewed-by: Steven Price <steven.price@arm.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20190509082151.8823-1-tomeu.vizoso@collabora.com
2019-05-13 09:46:53 -05:00
..
Kconfig drm/panfrost: depend on !GENERIC_ATOMIC64 when using COMPILE_TEST 2019-04-18 09:27:13 -05:00
Makefile
panfrost_devfreq.c drm/panfrost: Add missing include 2019-04-18 09:26:14 -05:00
panfrost_devfreq.h
panfrost_device.c drm/panfrost: Prevent concurrent resets 2019-04-18 09:27:34 -05:00
panfrost_device.h drm/panfrost: Prevent concurrent resets 2019-04-18 09:27:34 -05:00
panfrost_drv.c drm/panfrost: Only put sync_out if non-NULL 2019-05-13 09:46:53 -05:00
panfrost_features.h
panfrost_gem.c drm/panfrost: Make panfrost_gem_free_object() static 2019-04-18 09:25:45 -05:00
panfrost_gem.h
panfrost_gpu.c drm/panfrost: Show stored feature registers 2019-05-03 15:36:23 -05:00
panfrost_gpu.h
panfrost_issues.h
panfrost_job.c drm/panfrost: Prevent concurrent resets 2019-04-18 09:27:34 -05:00
panfrost_job.h
panfrost_mmu.c
panfrost_mmu.h
panfrost_regs.h
TODO