Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F149690481
D42282.1790725717.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
384 B
Referenced Files
None
Subscribers
None
D42282.1790725717.diff
View Options
Index: sys/dev/mwl/if_mwl.c
===================================================================
--- sys/dev/mwl/if_mwl.c
+++ sys/dev/mwl/if_mwl.c
@@ -2157,7 +2157,7 @@
bf = malloc(bsize, M_MWLDEV, M_NOWAIT | M_ZERO);
if (bf == NULL) {
device_printf(sc->sc_dev, "malloc of %u rx buffers failed\n", bsize);
- return error;
+ return ENOMEM;
}
sc->sc_rxdma.dd_bufptr = bf;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Sep 29, 11:48 PM (15 h, 50 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30020497
Default Alt Text
D42282.1790725717.diff (384 B)
Attached To
Mode
D42282: mwl: Change the return value of malloc() on failure to ENOMEM
Attached
Detach File
Event Timeline
Log In to Comment