Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F81970201
D5921.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
645 B
Referenced Files
None
Subscribers
None
D5921.diff
View Options
Index: sys/net/altq/altq_hfsc.c
===================================================================
--- sys/net/altq/altq_hfsc.c
+++ sys/net/altq/altq_hfsc.c
@@ -1774,20 +1774,11 @@
cl->cl_fsc == NULL) {
fsc_tmp = malloc(sizeof(struct internal_sc),
M_DEVBUF, M_WAITOK);
- if (fsc_tmp == NULL) {
- free(rsc_tmp);
- return (ENOMEM);
- }
}
if (usc != NULL && (usc->m1 != 0 || usc->m2 != 0) &&
cl->cl_usc == NULL) {
usc_tmp = malloc(sizeof(struct internal_sc),
M_DEVBUF, M_WAITOK);
- if (usc_tmp == NULL) {
- free(rsc_tmp);
- free(fsc_tmp);
- return (ENOMEM);
- }
}
cur_time = read_machclk();
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Dec 15, 3:32 PM (22 h, 1 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
9091730
Default Alt Text
D5921.diff (645 B)
Attached To
Mode
D5921: altq: remove NULL check after malloc with M_WAITOK
Attached
Detach File
Event Timeline
Log In to Comment