Skip to contentSkip to conversation

atl1c: restore buffer state

PATCH Applied xiong 2 participants 2 messages Feb 19, 2013

Subsystems (3)
lore
Share & tools
lore

xiong

author
#0 lore raw

PATCH 1/1 atl1c: restore buffer state

in the previous commit : f1f220ea1dda078, the BUSY state of buffer is wrongly deleted. this patch just restore it.

---
 drivers/net/ethernet/atheros/atl1c/atl1c_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/atheros/atl1c/atl1c_main.c +1 -1
index 8f33315..1f07fc6 100644
@@ -2072,7 +2072,7 @@ static int atl1c_tx_map(struct atl1c_adapter *adapter,
 		if (unlikely(pci_dma_mapping_error(adapter->pdev,
 						   buffer_info->dma)))
 			goto err_dma;
-
+		ATL1C_SET_BUFFER_STATE(buffer_info, ATL1C_BUFFER_BUSY);
 		ATL1C_SET_PCIMAP_TYPE(buffer_info, ATL1C_PCIMAP_SINGLE,
 			ATL1C_PCIMAP_TODEVICE);
 		mapped_len += map_len;
Signature · 1 line
1.7.11.7