atl1c: restore buffer state
authorHuang, Xiong <xiong@qca.qualcomm.com>
Tue, 19 Feb 2013 07:23:09 +0000 (07:23 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Mar 2013 20:10:57 +0000 (13:10 -0700)
[ Upstream commit 7cb08d7f3a5ea6131f4f243c2080530ac41cb293 ]

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

Signed-off-by: xiong <xiong@qca.qualcomm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/atheros/atl1c/atl1c_main.c

index 0035c01660b6149bc3177ada829a39d4720c805b..bfcb8bcef2a5eb56b771a026ce9f6c0bce9e49d8 100644 (file)
@@ -2075,7 +2075,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;