Skip to content

Commit 9bd9be5

Browse files
committed
Merge tag 'drm-misc-fixes-2023-06-21' of git://anongit.freedesktop.org/drm/drm-misc into drm-fixes
drm-misc-fixes for v6.4: - Qaic imported dma-buf fix. - Fix null pointer deref when printing a dp-mst message. Signed-off-by: Dave Airlie <airlied@redhat.com> From: Maarten Lankhorst <dev@lankhorst.se> Link: https://patchwork.freedesktop.org/patch/msgid/e96b1965-ba67-7cc5-2358-826eb5b9b998@lankhorst.se
2 parents 45a3e24 + 54d2174 commit 9bd9be5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

drivers/accel/qaic/qaic_data.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
#include <linux/wait.h>
2424
#include <drm/drm_file.h>
2525
#include <drm/drm_gem.h>
26+
#include <drm/drm_prime.h>
2627
#include <drm/drm_print.h>
2728
#include <uapi/drm/qaic_accel.h>
2829

@@ -616,8 +617,7 @@ static void qaic_free_object(struct drm_gem_object *obj)
616617

617618
if (obj->import_attach) {
618619
/* DMABUF/PRIME Path */
619-
dma_buf_detach(obj->import_attach->dmabuf, obj->import_attach);
620-
dma_buf_put(obj->import_attach->dmabuf);
620+
drm_prime_gem_destroy(obj, NULL);
621621
} else {
622622
/* Private buffer allocation path */
623623
qaic_free_sgt(bo->sgt);

drivers/gpu/drm/display/drm_dp_mst_topology.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3404,7 +3404,7 @@ int drm_dp_add_payload_part2(struct drm_dp_mst_topology_mgr *mgr,
34043404

34053405
/* Skip failed payloads */
34063406
if (payload->vc_start_slot == -1) {
3407-
drm_dbg_kms(state->dev, "Part 1 of payload creation for %s failed, skipping part 2\n",
3407+
drm_dbg_kms(mgr->dev, "Part 1 of payload creation for %s failed, skipping part 2\n",
34083408
payload->port->connector->name);
34093409
return -EIO;
34103410
}

0 commit comments

Comments
 (0)