Re: [PATCH] xrpcrdma: add missing error checks in rpcrdma_ep_destroy

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jan 25, 2022 at 07:30:05PM +0000, Chuck Lever III wrote:
> 
> 
> > On Jan 25, 2022, at 2:17 PM, Dan Aloni <dan.aloni@xxxxxxxxxxxx> wrote:
> > 
> > These pointers can be non-NULL and contain errors if initialization is
> > aborted early.  This is similar to how `__svc_rdma_free` takes care of
> > it.
> 
> IIUC the only place that can set these values to an
> ERR_PTR is rpcrdma_ep_create() ? I think I'd rather
> have rpcrdma_ep_create() set the fields to NULL in
> the error cases.

Actually that was my initialization draft but then I saw
`__svc_rdma_free`. Will send over.

> Good catch. I'm afraid to ask how you found this.

Just some adapter entering error state in firmware.

-- 
Dan Aloni



[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux