svn commit: r194537 - head/sys/dev/drm
Robert Noland
rnoland at FreeBSD.org
Sat Jun 20 16:37:25 UTC 2009
Author: rnoland
Date: Sat Jun 20 16:37:24 2009
New Revision: 194537
URL: http://svn.freebsd.org/changeset/base/194537
Log:
Don't panic if drm_rmmap is called with a NULL map pointer.
MFC after: 3 days
Modified:
head/sys/dev/drm/drm_bufs.c
Modified: head/sys/dev/drm/drm_bufs.c
==============================================================================
--- head/sys/dev/drm/drm_bufs.c Sat Jun 20 16:30:32 2009 (r194536)
+++ head/sys/dev/drm/drm_bufs.c Sat Jun 20 16:37:24 2009 (r194537)
@@ -296,6 +296,9 @@ void drm_rmmap(struct drm_device *dev, d
{
DRM_SPINLOCK_ASSERT(&dev->dev_lock);
+ if (map == NULL)
+ return;
+
TAILQ_REMOVE(&dev->maplist, map, link);
switch (map->type) {
More information about the svn-src-head
mailing list