mirror of
https://github.com/openharmony/third_party_FreeBSD.git
synced 2026-07-21 08:06:15 -04:00
fix:Check whether the pointer is null before using it
Signed-off-by: wu-chengwen <wuchengwen4@huawei.com>
This commit is contained in:
@@ -918,6 +918,9 @@ xhci_check_transfer(struct xhci_softc *sc, struct xhci_trb *trb)
|
||||
continue;
|
||||
|
||||
td = xfer->td_transfer_cache;
|
||||
if (td == NULL) {
|
||||
continue;
|
||||
}
|
||||
|
||||
DPRINTFN(5, "Checking if 0x%016llx == (0x%016llx .. 0x%016llx)\n",
|
||||
(long long)td_event,
|
||||
|
||||
Reference in New Issue
Block a user