]> git.droids-corp.org - dpdk.git/commit
net/enic: fix dereference before null check
authorJohn Daley <johndale@cisco.com>
Mon, 14 Feb 2022 20:46:10 +0000 (12:46 -0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 15 Feb 2022 12:54:39 +0000 (13:54 +0100)
commit3f326c460ff09146917d6a060cf5715a1b8b6446
tree42a9ca37a8770f23aeec4b78b7a575c725fdfd2c
parent3f3ae64f14156887514274287db9da5d6e8a2425
net/enic: fix dereference before null check

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@cisco.com>
Reviewed-by: Hyong Youb Kim <hyonkim@cisco.com>
drivers/net/enic/enic_fm_flow.c