summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2008-07-24 15:22:44 +1000
committerDave Airlie <airlied@redhat.com>2008-07-24 15:22:44 +1000
commit53428453758621da70d9608c9baec58b4b9383ec (patch)
treebfd7896538dad79a4814892faf4ba33f060bd3f5
parent4d5b9f484885ac01457f0a8c39b24ca4aac34b5a (diff)
drm: use correct mode destructor
-rw-r--r--linux-core/drm_modes.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/linux-core/drm_modes.c b/linux-core/drm_modes.c
index 4ee00305..d4cda0be 100644
--- a/linux-core/drm_modes.c
+++ b/linux-core/drm_modes.c
@@ -398,7 +398,7 @@ void drm_mode_prune_invalid(struct drm_device *dev,
drm_mode_debug_printmodeline(mode);
DRM_DEBUG("Not using %s mode %d\n", mode->name, mode->status);
}
- kfree(mode);
+ drm_mode_destroy(dev, mode);
}
}
}
@@ -556,7 +556,7 @@ void drm_mode_connector_list_update(struct drm_connector *connector)
/* if equal delete the probed mode */
mode->status = pmode->status;
list_del(&pmode->head);
- kfree(pmode);
+ drm_mode_destroy(connector->dev, pmode);
break;
}
}