mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-14 07:56:47 +00:00
fix CWE-468 in xhci.c
This commit is contained in:
parent
fd55328dfc
commit
20bdc183ca
@ -115,7 +115,7 @@ hardware_intr_controller xhci_hc_intr_controller =
|
|||||||
#define xhci_TRB_set_link_cmd(trb_vaddr) \
|
#define xhci_TRB_set_link_cmd(trb_vaddr) \
|
||||||
do \
|
do \
|
||||||
{ \
|
{ \
|
||||||
struct xhci_TRB_normal_t *ptr = (struct xhci_TRB_normal_t *)trb_vaddr; \
|
struct xhci_TRB_normal_t *ptr = (struct xhci_TRB_normal_t *)(trb_vaddr); \
|
||||||
ptr->TRB_type = TRB_TYPE_LINK; \
|
ptr->TRB_type = TRB_TYPE_LINK; \
|
||||||
ptr->ioc = 0; \
|
ptr->ioc = 0; \
|
||||||
ptr->chain = 0; \
|
ptr->chain = 0; \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user