Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F151156467
D25767.id75021.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
968 B
Referenced Files
None
Subscribers
None
D25767.id75021.diff
View Options
Index: head/sys/dev/cxgbe/t4_main.c
===================================================================
--- head/sys/dev/cxgbe/t4_main.c
+++ head/sys/dev/cxgbe/t4_main.c
@@ -10003,10 +10003,6 @@
}
fw_data = malloc(fw->len, M_CXGBE, M_WAITOK);
- if (fw_data == NULL) {
- rc = ENOMEM;
- goto done;
- }
rc = copyin(fw->data, fw_data, fw->len);
if (rc == 0)
@@ -10035,10 +10031,6 @@
}
cfg_data = malloc(cfg->len, M_CXGBE, M_WAITOK);
- if (cfg_data == NULL) {
- rc = ENOMEM;
- goto done;
- }
rc = copyin(cfg->data, cfg_data, cfg->len);
if (rc == 0)
@@ -10084,10 +10076,6 @@
}
br_data = malloc(br->len, M_CXGBE, M_WAITOK);
- if (br_data == NULL) {
- rc = ENOMEM;
- goto done;
- }
rc = copyin(br->data, br_data, br->len);
if (rc == 0)
@@ -10116,10 +10104,6 @@
}
bc_data = malloc(bc->len, M_CXGBE, M_WAITOK);
- if (bc_data == NULL) {
- rc = ENOMEM;
- goto done;
- }
rc = copyin(bc->data, bc_data, bc->len);
if (rc == 0)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Apr 7, 11:55 AM (14 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31028884
Default Alt Text
D25767.id75021.diff (968 B)
Attached To
Mode
D25767: cxgbe(4): Stop checking for failures from malloc(M_WAITOK).
Attached
Detach File
Event Timeline
Log In to Comment