Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F110036114
D48948.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
646 B
Referenced Files
None
Subscribers
None
D48948.diff
View Options
diff --git a/sys/dev/usb/wlan/if_uath.c b/sys/dev/usb/wlan/if_uath.c
--- a/sys/dev/usb/wlan/if_uath.c
+++ b/sys/dev/usb/wlan/if_uath.c
@@ -2308,10 +2308,12 @@
__func__, dlen, sizeof(uint32_t));
return;
}
- /* XXX have submitter do this */
- /* copy answer into caller's supplied buffer */
- bcopy(hdr+1, cmd->odata, sizeof(uint32_t));
- cmd->olen = sizeof(uint32_t);
+ if (cmd->odata != NULL) {
+ /* XXX have submitter do this */
+ /* copy answer into caller's supplied buffer */
+ bcopy(hdr+1, cmd->odata, sizeof(uint32_t));
+ cmd->olen = sizeof(uint32_t);
+ }
wakeup_one(cmd); /* wake up caller */
break;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Feb 13, 7:37 PM (6 h, 14 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16616352
Default Alt Text
D48948.diff (646 B)
Attached To
Mode
D48948: uath: Avoid a NULL dereference
Attached
Detach File
Event Timeline
Log In to Comment