diff options
author | Ian Moffett <ian@osmora.org> | 2025-01-08 21:58:29 -0500 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-01-08 21:58:29 -0500 |
commit | a5da98ef1f85a78d935a8ba048487eb650b7eb07 (patch) | |
tree | 79d2064e9b01a7217c3d8b0a603fc8c201081535 /sys/dev | |
parent | 01a78bd46be97927310ed91a2865dbc25facf77d (diff) |
kernel: xhci: Ensure command ring is zeroed
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/usb/xhci.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/usb/xhci.c b/sys/dev/usb/xhci.c index 0f386cb..ad99f72 100644 --- a/sys/dev/usb/xhci.c +++ b/sys/dev/usb/xhci.c @@ -277,6 +277,8 @@ xhci_alloc_cmdring(struct xhci_hc *hc) size = XHCI_TRB_SIZE * XHCI_CMDRING_LEN; hc->cmdring = dynalloc_memalign(size, 0x1000); + + memset(hc->cmdring, 0, size); __assert(hc->cmdring != NULL); return VIRT_TO_PHYS(hc->cmdring); } |