From e20bd8a93c0f50699b5244c85a56ac745aedf10f Mon Sep 17 00:00:00 2001 From: Matej Vido Date: Tue, 24 Jan 2017 11:49:52 +0100 Subject: [PATCH] net/szedata2: fix device memory access Fixes: 8acba705b119 ("net/szedata2: localize handling of PCI resources") Signed-off-by: Matej Vido Reviewed-by: Ferruh Yigit --- drivers/net/szedata2/rte_eth_szedata2.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/szedata2/rte_eth_szedata2.h b/drivers/net/szedata2/rte_eth_szedata2.h index b58adb6e59..afe8a383f0 100644 --- a/drivers/net/szedata2/rte_eth_szedata2.h +++ b/drivers/net/szedata2/rte_eth_szedata2.h @@ -192,7 +192,7 @@ pci_resource_write64(struct rte_mem_resource *rsc, uint32_t offset, } #define SZEDATA2_PCI_RESOURCE_PTR(rsc, offset, type) \ - ((type)((uint8_t *)(rsc)->addr) + (offset)) + ((type)(((uint8_t *)(rsc)->addr) + (offset))) enum szedata2_link_speed { SZEDATA2_LINK_SPEED_DEFAULT = 0, -- 2.20.1