raw/ifpga/base: dereference before null check
PATCH 1/1 raw/ifpga/base: dereference before null check
Add pointer null check before dereference.
Coverity issue: 344976
--- drivers/raw/ifpga/base/opae_eth_group.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/raw/ifpga/base/opae_eth_group.c +1 -2
@@ -308,9 +308,8 @@ struct eth_group_device *eth_group_probe(void *base)void eth_group_release (struct eth_group_device *dev) { -eth_group_hw_uinit (dev); -if (dev) { +eth_group_hw_uinit (dev); dev->status =ETH_GROUP_DEV_NOUSED ;opae_free (dev); }
Signature · 1 line
2.17.1
Quoted 8 lines · Tianfei zhang
Add pointer null check before dereference.
Coverity issue: 344976
Fixes 12f92a51 ("raw/ifpga/base: fix retimer link status")Signed-off-by Tianfei zhang <[email protected]>
This patch touches a "base driver" file, is this ok ?
Signature · 1 line
David Marchand
Hi,
Quoted 14 lines
-----Original Message-----
From: David Marchand [mailto:[email protected]]
Sent: Friday, October 25, 2019 3:22
To: Xu, Rosen <[email protected]>; Zhang, Tianfei <[email protected]>
Cc: dev <[email protected]>; dpdk stable <[email protected]>
Subject: Re: [dpdk-dev] [PATCH] raw/ifpga/base: dereference before null checkQuoted 3 lines · Tianfei zhang
Add pointer null check before dereference.
Quoted 7 lines
Quoted 5 lines
Coverity issue: 344976
Fixes 12f92a51 ("raw/ifpga/base: fix retimer link status")Signed-off-by Tianfei zhang <[email protected]>This patch touches a "base driver" file, is this ok ?
It's just raw/ifpga internal base driver.
Quoted 3 lines
--
David Marchand
Quoted 29 lines · Tianfei zhang
Add pointer null check before dereference.
Coverity issue: 344976
Fixes 12f92a51 ("raw/ifpga/base: fix retimer link status")Signed-off-by Tianfei zhang <[email protected]>---
drivers/raw/ifpga/base/opae_eth_group.c| 3 +--1 file changed, 1 insertion(+), 2 deletions(-)drivers/raw/ifpga/base/opae_eth_group.c +1
-2@@ -308,9 +308,8 @@ struct eth_group_device *eth_group_probe(void *base)void eth_group_release (struct eth_group_device *dev) { -eth_group_hw_uinit (dev); -if (dev) { +eth_group_hw_uinit (dev); dev->status =ETH_GROUP_DEV_NOUSED ;opae_free (dev); }Signature · 1 line
2.17.1
Applied to dpdk-next-net-intel. Thanks.
Quoted 33 lines · Ye Xiaolong
Quoted 29 lines · Tianfei zhang
Add pointer null check before dereference.
Coverity issue: 344976
Fixes 12f92a51 ("raw/ifpga/base: fix retimer link status")Signed-off-by Tianfei zhang <[email protected]>---
drivers/raw/ifpga/base/opae_eth_group.c| 3 +--1 file changed, 1 insertion(+), 2 deletions(-)drivers/raw/ifpga/base/opae_eth_group.c +1
-2@@ -308,9 +308,8 @@ struct eth_group_device *eth_group_probe(void *base)void eth_group_release (struct eth_group_device *dev) { -eth_group_hw_uinit (dev); -if (dev) { +eth_group_hw_uinit (dev); dev->status =ETH_GROUP_DEV_NOUSED ;opae_free (dev); }Signature · 1 line
2.17.1Reviewed-by Xiaolong Ye <[email protected]>
Quoted 2 lines
Applied to dpdk-next-net-intel. Thanks.
Should we update the MAINTAINERS file to say that "drivers/raw/ifpga" merges to the next-net-intel?
Quoted 7 lines · Ferruh Yigit
Quoted 4 lines
Reviewed-by Xiaolong Ye <[email protected]>Applied to dpdk-next-net-intel. Thanks.
Should we update the
MAINTAINERSfile to say that "drivers/raw/ifpga" merges to the next-net-intel?
Thanks, this area is, a bit, gray to me.
So a clarification is welcome.
--
David Marchand
25/10/2019 13:47, David Marchand:
Quoted 11 lines · Ferruh Yigit
Quoted 7 lines
Quoted 4 lines
Reviewed-by Xiaolong Ye <[email protected]>Applied to dpdk-next-net-intel. Thanks.
Should we update the
MAINTAINERSfile to say that "drivers/raw/ifpga" merges to the next-net-intel?Thanks, this area is, a bit, gray to me.
So a clarification is welcome.
Yes I think it is OK to get raw/ifpga in next-net-intel.
Quoted 7 lines · Thomas Monjalon
25/10/2019 13:47, David Marchand:
Quoted 6 lines · Ferruh Yigit
Quoted 5 lines
Quoted 4 lines
Reviewed-by Xiaolong Ye <[email protected]>Applied to dpdk-next-net-intel. Thanks.
Quoted 9 lines
Quoted 5 lines
Quoted 2 lines
Should we update the
MAINTAINERSfile to say that "drivers/raw/ifpga" merges to the next-net-intel?Thanks, this area is, a bit, gray to me.
So a clarification is welcome.Yes I think it is OK to get raw/ifpga in next-net-intel.
Done, just send a patch for it.
Thanks,
Xiaolong