Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177957359
D62007.1795646741.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
874 B
Referenced Files
None
Subscribers
None
D62007.1795646741.diff
View Options
diff --git a/sys/dev/hyperv/hvsock/hv_sock.c b/sys/dev/hyperv/hvsock/hv_sock.c
--- a/sys/dev/hyperv/hvsock/hv_sock.c
+++ b/sys/dev/hyperv/hvsock/hv_sock.c
@@ -177,7 +177,7 @@
static void
__hvs_remove_pcb_from_list(struct hvs_pcb *pcb, unsigned char list)
{
- struct hvs_pcb *p = NULL;
+ struct hvs_pcb *p = NULL, *ptmp;
HVSOCK_DBG(HVSOCK_DBG_VERBOSE, "%s: pcb is %p\n", __func__, pcb);
@@ -185,13 +185,13 @@
return;
if (list & HVS_LIST_BOUND) {
- LIST_FOREACH(p, &hvs_trans_bound_socks, bound_next)
+ LIST_FOREACH_SAFE(p, &hvs_trans_bound_socks, bound_next, ptmp)
if (p == pcb)
LIST_REMOVE(p, bound_next);
}
if (list & HVS_LIST_CONNECTED) {
- LIST_FOREACH(p, &hvs_trans_connected_socks, connected_next)
+ LIST_FOREACH_SAFE(p, &hvs_trans_connected_socks, connected_next, ptmp)
if (p == pcb)
LIST_REMOVE(pcb, connected_next);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 25, 10:45 PM (21 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41997878
Default Alt Text
D62007.1795646741.diff (874 B)
Attached To
Mode
D62007: hyperv: Use SAFE variant when deleting elements
Attached
Detach File
Event Timeline