[PATCH] drm: Free the idr layers before calling idr_destroy()

2010-07-24 Thread Chris Wilson

[PATCH] drm: Free the idr layers before calling idr_destroy()

2010-07-24 Thread Chris Wilson
>From the docs for idr: /* A typical clean-up sequence for objects stored in an idr tree, will * use idr_for_each() to free all objects, if necessary, then * idr_remove_all() to remove all ids, and idr_destroy() to free * up the cached idr_layers. */ We were missing the vital idr_rmove_all()