DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] net/szedata2: fix incorrect device memory access
@ 2017-01-24 10:49 Matej Vido
  2017-01-24 11:58 ` Ferruh Yigit
  2017-01-24 15:24 ` Ferruh Yigit
  0 siblings, 2 replies; 10+ messages in thread
From: Matej Vido @ 2017-01-24 10:49 UTC (permalink / raw)
  To: dev

Fixes: 8acba705b119 ("net/szedata2: localize handling of PCI resources")

Signed-off-by: Matej Vido <vido@cesnet.cz>
---
 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 b58adb6..afe8a38 100644
--- a/drivers/net/szedata2/rte_eth_szedata2.h
+++ b/drivers/net/szedata2/rte_eth_szedata2.h
@@ -192,7 +192,7 @@ struct szedata {
 }
 
 #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,
-- 
1.8.4

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2017-01-24 16:29 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-24 10:49 [dpdk-dev] [PATCH] net/szedata2: fix incorrect device memory access Matej Vido
2017-01-24 11:58 ` Ferruh Yigit
2017-01-24 14:02   ` Matej Vido
2017-01-24 14:17     ` Ferruh Yigit
2017-01-24 15:11     ` Ferruh Yigit
2017-01-24 15:55       ` Matej Vido
2017-01-24 16:03         ` Ferruh Yigit
2017-01-24 15:24 ` Ferruh Yigit
2017-01-24 16:05   ` Matej Vido
2017-01-24 16:29     ` Ferruh Yigit

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).