Skip to content

Commit 4a9f8e8

Browse files
6by9popcornmix
authored andcommitted
drm: vc4: hvs: Fix vc6_hvs_debugfs_dlist state lookup
vc4's debugfs support was updated with drm_debugfs_entry whilst BCM2712 support was in progress, and missed that the lookup in vc6_hvs_debugfs_dlist still followed the old pattern. Correct that lookup to avoid an invalid dereference. Fixes: f7af8ae ("drm/vc4: hvs: Add support for BCM2712 HVS") Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
1 parent 6508b4a commit 4a9f8e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/gpu/drm/vc4/vc4_hvs.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,8 +281,8 @@ static int vc4_hvs_debugfs_dlist(struct seq_file *m, void *data)
281281

282282
static int vc6_hvs_debugfs_dlist(struct seq_file *m, void *data)
283283
{
284-
struct drm_info_node *node = m->private;
285-
struct drm_device *dev = node->minor->dev;
284+
struct drm_debugfs_entry *entry = m->private;
285+
struct drm_device *dev = entry->dev;
286286
struct vc4_dev *vc4 = to_vc4_dev(dev);
287287
struct vc4_hvs *hvs = vc4->hvs;
288288
struct drm_printer p = drm_seq_file_printer(m);

0 commit comments

Comments
 (0)