bugfix: Suspicious add with sizeof

This commit is contained in:
fslongjin
2022-07-21 21:56:13 +08:00
parent 49bbba17ec
commit c700737d8e

View File

@ -491,7 +491,7 @@ static uint64_t xhci_create_ring(int trbs)
memset((void *)vaddr, 0, total_size);
// 设置最后一个trb为link trb
xhci_TRB_set_link_cmd(vaddr + total_size - sizeof(sizeof(struct xhci_TRB_t)));
xhci_TRB_set_link_cmd(vaddr + total_size - sizeof(struct xhci_TRB_t));
return vaddr;
}