summaryrefslogtreecommitdiffstats
path: root/drivers/dma-buf/st-dma-fence-chain.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2024-03-29 05:00:13 +1000
committerDave Airlie <airlied@redhat.com>2024-03-29 05:00:21 +1000
commit2f73503e95b2e3369061c8c70d8e92907cd91b0d (patch)
tree7f4cf832f459363e416cf74e4b7b0b7d34a91e0d /drivers/dma-buf/st-dma-fence-chain.c
parent197aa825fdc4a3500f8d06518a4975f5461b4b19 (diff)
parentaba2a144c0bf1ecdcbc520525712fb661392e509 (diff)
downloadlinux-stable-2f73503e95b2e3369061c8c70d8e92907cd91b0d.tar.gz
linux-stable-2f73503e95b2e3369061c8c70d8e92907cd91b0d.tar.bz2
linux-stable-2f73503e95b2e3369061c8c70d8e92907cd91b0d.zip
Merge tag 'drm-misc-fixes-2024-03-28' of https://gitlab.freedesktop.org/drm/misc/kernel into drm-fixes
Short summary of fixes pull: bridge: - select DRM_KMS_HELPER dma-buf: - fix NULL-pointer deref dp: - fix div-by-zero in DP MST unplug code fbdev: - select FB_IOMEM_FOPS for SBus nouveau: - dmem: handle kcalloc() allocation failures qxl: - remove unused variables rockchip: - vop2: remove support for AR30 and AB30 formats sched: - fix NULL-pointer deref vmwgfx: - debugfs: create ttm_resource_manager entry only if needed Signed-off-by: Dave Airlie <airlied@redhat.com> From: Thomas Zimmermann <tzimmermann@suse.de> Link: https://patchwork.freedesktop.org/patch/msgid/20240328134417.GA8673@localhost.localdomain
Diffstat (limited to 'drivers/dma-buf/st-dma-fence-chain.c')
-rw-r--r--drivers/dma-buf/st-dma-fence-chain.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/dma-buf/st-dma-fence-chain.c b/drivers/dma-buf/st-dma-fence-chain.c
index 9c2a0c082a76..ed4b323886e4 100644
--- a/drivers/dma-buf/st-dma-fence-chain.c
+++ b/drivers/dma-buf/st-dma-fence-chain.c
@@ -84,11 +84,11 @@ static int sanitycheck(void *arg)
return -ENOMEM;
chain = mock_chain(NULL, f, 1);
- if (!chain)
+ if (chain)
+ dma_fence_enable_sw_signaling(chain);
+ else
err = -ENOMEM;
- dma_fence_enable_sw_signaling(chain);
-
dma_fence_signal(f);
dma_fence_put(f);