Fix bugs reported by Coverity Scan.

This commit is contained in:
Daiyuu Nobori committed 2018-09-28 22:39:38 +09:00
1 parent 06c06f1db8
commit ee9990317b
12 files changed
+29 -15

No files matched your search

+5 -2
View File
@@ -3717,9 +3717,12 @@ bool HubPaPutPacket(SESSION *s, void *data, UINT size)
CancelList(s->CancelList);
// Yield
if (hub->Option != NULL && hub->Option->YieldAfterStorePacket)
if (hub != NULL)
{
YieldCpu();
if (hub->Option != NULL && hub->Option->YieldAfterStorePacket)
{
YieldCpu();
}
}
return true;