]> git.droids-corp.org - dpdk.git/commitdiff
net/szedata2: fix device memory access
authorMatej Vido <vido@cesnet.cz>
Tue, 24 Jan 2017 10:49:52 +0000 (11:49 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 30 Jan 2017 21:18:26 +0000 (22:18 +0100)
Fixes: 8acba705b119 ("net/szedata2: localize handling of PCI resources")
Signed-off-by: Matej Vido <vido@cesnet.cz>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/szedata2/rte_eth_szedata2.h

index b58adb6e59701466136153edca2cbf9e8bca0173..afe8a383f01110bf6f56bf2e90a9adfd6b98f1ca 100644 (file)
@@ -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,