mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-18 20:36:31 +00:00
bugfix: Suspicious add with sizeof
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user