summaryrefslogtreecommitdiff
path: root/bsd-core
diff options
context:
space:
mode:
authorEric Anholt <anholt@freebsd.org>2005-04-24 19:09:09 +0000
committerEric Anholt <anholt@freebsd.org>2005-04-24 19:09:09 +0000
commitbe9e67a927ed9583380107b2fb9ddf3bd8a5f128 (patch)
treef778d9a7acfc5b43e9a196cef5e504da116d26d3 /bsd-core
parent699d4ad53a62e46344b672365dda0be4001edd99 (diff)
Fix a panic on startup with non-initmapping drivers by assigning the
drm_ioremap return value to the map handle again. Submitted by: Tor Egge, tegge at freebsd dot org
Diffstat (limited to 'bsd-core')
-rw-r--r--bsd-core/drm_bufs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bsd-core/drm_bufs.c b/bsd-core/drm_bufs.c
index a5651d03..0461ebeb 100644
--- a/bsd-core/drm_bufs.c
+++ b/bsd-core/drm_bufs.c
@@ -204,7 +204,7 @@ int drm_addmap(DRM_IOCTL_ARGS)
switch ( map->type ) {
case _DRM_REGISTERS:
- drm_ioremap(dev, map);
+ map->handle = drm_ioremap(dev, map);
if (!(map->flags & _DRM_WRITE_COMBINING))
break;
/* FALLTHROUGH */