Skip to content

Commit

Permalink
Merge branch 'fix_10_14_1_kp'
Browse files Browse the repository at this point in the history
  • Loading branch information
RehabMan committed Nov 1, 2018
2 parents 4b19a49 + ec19d36 commit ccef3dd
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions IntelMausiEthernet/IntelMausiSetup.cpp
Expand Up @@ -469,9 +469,11 @@ void IntelMausi::clearDescriptors()
* we must restore them in order to make sure that we leave the ring in
* a usable state.
*/
for (i = 0; i < kNumRxDesc; i++) {
rxDescArray[i].read.buffer_addr = OSSwapHostToLittleInt64(rxBufArray[i].phyAddr);
rxDescArray[i].read.reserved = 0;
if (rxDescArray) {
for (i = 0; i < kNumRxDesc; i++) {
rxDescArray[i].read.buffer_addr = OSSwapHostToLittleInt64(rxBufArray[i].phyAddr);
rxDescArray[i].read.reserved = 0;
}
}
rxCleanedCount = rxNextDescIndex = 0;

Expand Down

0 comments on commit ccef3dd

Please sign in to comment.