HomeFreeBSD

Use LIST_FOREACH_SAFE instead of LIST_FOREACH as we are removing

Description

Use LIST_FOREACH_SAFE instead of LIST_FOREACH as we are removing
elements in the middle.

This fixes a panic when detaching USB mouse.

PR: 245732
Reviewed by: wulf
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D24500

Details

Provenance
delphijAuthored on
Reviewer
wulf
Differential Revision
D24500: Use LIST_FOREACH_SAFE instead of LIST_FOREACH as we are removing elements in the middle.
Parents
rS360103: MFC r358848:
Branches
Unknown
Tags
Unknown