Skip to content

Commit

Permalink
Don't ignore output function result
Browse files Browse the repository at this point in the history
  • Loading branch information
zxystd committed Oct 1, 2022
1 parent bb86d9f commit ee56708
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions AirportItlwm/AirportItlwm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -693,8 +693,8 @@ IOReturn AirportItlwm::outputStart(IONetworkInterface *interface, IOOptionBits o
if (ifq_is_oactive(&ifp->if_snd))
return kIOReturnNoResources;
while (kIOReturnSuccess == interface->dequeueOutputPackets(1, &m)) {
outputPacket(m, NULL);
if (ifq_is_oactive(&ifp->if_snd))
if (outputPacket(m, NULL)!= kIOReturnOutputSuccess ||
ifq_is_oactive(&ifp->if_snd))
return kIOReturnNoResources;
}
return kIOReturnSuccess;
Expand Down
4 changes: 2 additions & 2 deletions itlwm/itlwm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -593,8 +593,8 @@ IOReturn itlwm::outputStart(IONetworkInterface *interface, IOOptionBits options)
if (ifq_is_oactive(&ifp->if_snd))
return kIOReturnNoResources;
while (kIOReturnSuccess == interface->dequeueOutputPackets(1, &m)) {
outputPacket(m, NULL);
if (ifq_is_oactive(&ifp->if_snd))
if (outputPacket(m, NULL)!= kIOReturnOutputSuccess ||
ifq_is_oactive(&ifp->if_snd))
return kIOReturnNoResources;
}
return kIOReturnSuccess;
Expand Down

0 comments on commit ee56708

Please sign in to comment.