Skip to content

Commit a92b7d2

Browse files
committed
Merge tag 'drm-fixes-2023-06-23' of git://anongit.freedesktop.org/drm/drm
Pull drm fixes from Dave Airlie: "Very quiet last week, just two misc fixes, one dp-mst and one qaic: qaic: - dma-buf import fix dp-mst: - fix NULL ptr deref" [ It turns out it was a quiet week because Alex Deucher hadn't sent in his pending AMD changes. So they are coming next - Linus ] * tag 'drm-fixes-2023-06-23' of git://anongit.freedesktop.org/drm/drm: drm: use mgr->dev in drm_dbg_kms in drm_dp_add_payload_part2 accel/qaic: Call DRM helper function to destroy prime GEM
2 parents 0f56e65 + 9bd9be5 commit a92b7d2

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)