Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F171099610
D42282.id179774.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
350 B
Referenced Files
None
Subscribers
None
D42282.id179774.diff
View Options
diff --git a/sys/dev/mwl/if_mwl.c b/sys/dev/mwl/if_mwl.c
--- a/sys/dev/mwl/if_mwl.c
+++ b/sys/dev/mwl/if_mwl.c
@@ -2165,7 +2165,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
Wed, Sep 9, 5:00 PM (12 h, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33979775
Default Alt Text
D42282.id179774.diff (350 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