On Fri, Jul 10, 2026 at 02:19:34PM +0100, Loftus, Ciara wrote:
> > Subject: [PATCH] net/iavf: check for NULL pointer before dereference
> 
> check-git-log complains NULL --> null
> 
> > 
> > Static analysis with Coverity flags a possible NULL pointer dereference
> > of "hdr1" when handling IPv4 or IPv6 fragements in
> > iavf_fdir_parse_pattern.  This is likely a false positive, since the
> > flow pattern protocol sequences are checked before this function is
> > called, so all paths leading to a hdr1 dereference start with an
> > ethernet protocol, which sets hdr1 to a non-NULL value.
> > 
> > However, this is a rather brittle situation, so to prevent any future
> > issues if a new set of allowed protocols is added with IP but no
> > Ethernet matching patterns, add explicit NULL checks for hdr1 before
> > it's used each time.
> > 
> > Coverity Id: 503768
> 
> "issue" instead of "id"
> 
Fixed on apply
> > 
> > Signed-off-by: Bruce Richardson <[email protected]>
> 
> Acked-by: Ciara Loftus <[email protected]>
> 

Applied to dpdk-next-net-intel.

/Bruce

Reply via email to