From: mpi Date: Thu, 9 Jan 2014 13:42:57 +0000 (+0000) Subject: Fix the burner method, here the cookie is a pointer to rasops_info. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=1accb1b8996582616f7ac13294800bb5133c465c;p=openbsd 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@ --- 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);