Skip to content

Commit 7cb08d7

Browse files
xhuangdavem330
authored andcommitted
atl1c: restore buffer state
in the previous commit : f1f220ea1dda078, the BUSY state of buffer is wrongly deleted. this patch just restore it. Signed-off-by: xiong <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent cd06157 commit 7cb08d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/atheros/atl1c/atl1c_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2072,7 +2072,7 @@ static int atl1c_tx_map(struct atl1c_adapter *adapter,
20722072
if (unlikely(pci_dma_mapping_error(adapter->pdev,
20732073
buffer_info->dma)))
20742074
goto err_dma;
2075-
2075+
ATL1C_SET_BUFFER_STATE(buffer_info, ATL1C_BUFFER_BUSY);
20762076
ATL1C_SET_PCIMAP_TYPE(buffer_info, ATL1C_PCIMAP_SINGLE,
20772077
ATL1C_PCIMAP_TODEVICE);
20782078
mapped_len += map_len;

0 commit comments

Comments
 (0)