diff options
Diffstat (limited to 'sys/dev/usb')
-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); } |