Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144303162
D50753.id156787.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
423 B
Referenced Files
None
Subscribers
None
D50753.id156787.diff
View Options
diff --git a/sys/dev/firmware/arm/scmi.c b/sys/dev/firmware/arm/scmi.c
--- a/sys/dev/firmware/arm/scmi.c
+++ b/sys/dev/firmware/arm/scmi.c
@@ -291,9 +291,9 @@
static void
scmi_reqs_pool_free(struct scmi_reqs_pool *rp)
{
- struct scmi_req *req;
+ struct scmi_req *req, *tmp;
- LIST_FOREACH(req, &rp->head, next) {
+ LIST_FOREACH_SAFE(req, &rp->head, next, tmp) {
mtx_destroy(&req->mtx);
free(req, M_DEVBUF);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Feb 8, 6:07 PM (16 h, 11 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28481424
Default Alt Text
D50753.id156787.diff (423 B)
Attached To
Mode
D50753: scmi: Avoid a use-after-free
Attached
Detach File
Event Timeline
Log In to Comment