> > The functions enic_copy_item_ipv4_v1(), enic_copy_item_udp_v1(), and
> > enic_copy_item_tcp_v1() each initialize a local 'mask' variable from
> > item->mask and substitute it with a hardcoded mask if NULL. However,
> > the subsequent mask_exact_match() call uses item->mask directly
> > instead of the local 'mask' variable, which will dereference NULL
> > when item->mask is NULL.
> >
> > Use the local 'mask' variable (which has been validated and possibly
> > substituted) instead of item->mask.
> >
> > Fixes: aa3d2ff82198 ("net/enic: flow API for Legacy NICs")
> > Cc: [email protected]
> >
> > Signed-off-by: Alexey Simakov <[email protected]>
> > ---
> The enic patch looks like a valid fix.
> Acked-by: Hyong Youb Kim <[email protected]>
Applied, thanks.