fix:Check whether the pointer is null before using it

Signed-off-by: wu-chengwen <wuchengwen4@huawei.com>
This commit is contained in:
wu-chengwen
2022-02-15 10:50:14 +08:00
parent 85c3b143d7
commit 6dd3e2a419
+3
View File
@@ -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,