|
@@ -698,7 +698,7 @@ static void iwl_pcie_rx_handle(struct iwl_trans *trans)
|
|
|
|
|
|
/* uCode's read index (stored in shared DRAM) indicates the last Rx
|
|
/* uCode's read index (stored in shared DRAM) indicates the last Rx
|
|
* buffer that the driver may process (last buffer filled by ucode). */
|
|
* buffer that the driver may process (last buffer filled by ucode). */
|
|
- r = le16_to_cpu(rxq->rb_stts->closed_rb_num) & 0x0FFF;
|
|
|
|
|
|
+ r = le16_to_cpu(ACCESS_ONCE(rxq->rb_stts->closed_rb_num)) & 0x0FFF;
|
|
i = rxq->read;
|
|
i = rxq->read;
|
|
|
|
|
|
/* Rx interrupt, but nothing sent from uCode */
|
|
/* Rx interrupt, but nothing sent from uCode */
|