Correct STAILQ usage in purge of resourcelist.
Found with: Coverity Prevent(tm)
This commit is contained in:
parent
20f867c0a7
commit
7168d9e051
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user