From 1accb1b8996582616f7ac13294800bb5133c465c Mon Sep 17 00:00:00 2001 From: mpi Date: Thu, 9 Jan 2014 13:42:57 +0000 Subject: [PATCH] Fix the burner method, here the cookie is a pointer to rasops_info. Problem noticed by Nick Gray and brett@ and analysed with mikeb@. ok jsg@ --- sys/dev/pci/drm/radeon/radeon_fb.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/dev/pci/drm/radeon/radeon_fb.c b/sys/dev/pci/drm/radeon/radeon_fb.c index 659693dd9d9..a451b71aba5 100644 --- a/sys/dev/pci/drm/radeon/radeon_fb.c +++ b/sys/dev/pci/drm/radeon/radeon_fb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: radeon_fb.c,v 1.3 2013/12/05 13:29:56 kettenis Exp $ */ +/* $OpenBSD: radeon_fb.c,v 1.4 2014/01/09 13:42:57 mpi Exp $ */ /* * Copyright © 2007 David Airlie * @@ -494,7 +494,8 @@ bool radeon_fbdev_robj_is_fb(struct radeon_device *rdev, struct radeon_bo *robj) void radeondrm_burner(void *v, u_int on, u_int flags) { - struct radeon_device *rdev = v; + struct rasops_info *ri = v; + struct radeon_device *rdev = ri->ri_hw; task_del(systq, &rdev->burner_task); -- 2.20.1