Correct STAILQ usage in purge of resourcelist.

Found with:   Coverity Prevent(tm)
This commit is contained in:
phk 2006-01-14 09:41:35 +00:00
parent 20f867c0a7
commit 7168d9e051

View File

@ -2820,7 +2820,7 @@ resource_list_purge(struct resource_list *rl)
{
struct resource_list_entry *rle;
STAILQ_FOREACH(rle, rl, link) {
while ((rle = STAILQ_FIRST(rl)) != NULL) {
if (rle->res)
bus_release_resource(rman_get_device(rle->res),
rle->type, rle->rid, rle->res);