Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F175278593
D60386.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
391 B
Referenced Files
None
Subscribers
None
D60386.diff
View Options
diff --git a/sys/dev/gve/gve_utils.c b/sys/dev/gve/gve_utils.c
--- a/sys/dev/gve/gve_utils.c
+++ b/sys/dev/gve/gve_utils.c
@@ -69,8 +69,12 @@
{
int i;
- for (i = 0; i < num_stats; i++)
- counter_u64_free(stat[i]);
+ for (i = 0; i < num_stats; i++) {
+ if (stat[i] != NULL) {
+ counter_u64_free(stat[i]);
+ stat[i] = NULL;
+ }
+ }
}
/* Currently assumes a single segment. */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Oct 10, 4:07 PM (3 h, 15 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
40318879
Default Alt Text
D60386.diff (391 B)
Attached To
Mode
D60386: gve: fix double free on ring allocation failure
Attached
Detach File
Event Timeline
Log In to Comment