Re: [PATCH next] pds_fwctl: Fix a NULL vs IS_ERR() check in pdsfc_validate_rpc()

From: Jason Gunthorpe
Date: Wed Mar 19 2025 - 12:28:18 EST


On Wed, Mar 19, 2025 at 07:26:10PM +0300, Dan Carpenter wrote:
> On Wed, Mar 19, 2025 at 09:18:31AM -0700, Nelson, Shannon wrote:
> > On 3/19/2025 12:06 AM, Dan Carpenter wrote:
> > >
> > > The pdsfc_get_operations() function returns error pointers, it doesn't
> > > return NULL. However, the "ep_info->operations" pointer should be set
> > > to either a valid pointer or NULL because the rest of the driver checks
> > > for that.
> > >
> > > Fixes: 804294d75ac5 ("pds_fwctl: add rpc and query support")
> > > Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx>
> >
> > Hi Dan, thanks for this patch. We also have this same fix in the patchset
> > update that I was expecting to push out today, but you beat me to it.
> >
> > Shall I continue with our v4 patchset, or should I now be sending smaller
> > patches to update from earlier review comments?
> >
>
> I don't track how these things are merged. If you were going to fix
> it in a v4 patchset then just ignore this patch. Typically in that
> case you would fold the fix into the patchset anyway.

Right, please just send v4 and include a fix Dan's report.

Thanks,
Jason