[PATCH] net/enic: fix dereference before null check

Ferruh Yigit ferruh.yigit at intel.com
Tue Feb 15 14:01:34 CET 2022


On 2/14/2022 8:46 PM, John Daley wrote:
> This patch fixes an issue found by coverity. It checks for a possible
> null value of "error" before dereferencing it.
> 
> CID: 375064: Dereference after null check
> Either the check against null is unnecessary, or there may be a null
> pointer dereference.
> 
> Coverity issue: 375064
> Fixes: ee806eea59fe ("net/enic: support GENEVE flow item")
> 
> Signed-off-by: John Daley <johndale at cisco.com>
> Reviewed-by: Hyong Youb Kim <hyonkim at cisco.com>

Applied to dpdk-next-net/main, thanks.


More information about the dev mailing list