From: Matej Vido Date: Tue, 24 Jan 2017 10:49:52 +0000 (+0100) Subject: net/szedata2: fix device memory access X-Git-Tag: spdx-start~4608 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=e20bd8a93c0f50699b5244c85a56ac745aedf10f;p=dpdk.git net/szedata2: fix device memory access Fixes: 8acba705b119 ("net/szedata2: localize handling of PCI resources") Signed-off-by: Matej Vido Reviewed-by: Ferruh Yigit --- 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,