Re: [PATCH] RDMA/iw_cxgb4: Fix the unchecked ep dereference

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

 



On Fri, Jan 11, 2019 at 08:27:18PM +0530, Raju Rangoju wrote:
> The patch 944661dd97f4: "RDMA/iw_cxgb4: atomically lookup ep and get a
> reference" from May 6, 2016, leads to the following Smatch
> complaint:
> 
>     drivers/infiniband/hw/cxgb4/cm.c:2953 terminate()
>     error: we previously assumed 'ep' could be null (see line 2945)
> 
> Fixes: 944661dd97f4 ("RDMA/iw_cxgb4: atomically lookup ep and get a
> reference")
> 
> Reported-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx>
> Signed-off-by: Raju Rangoju <rajur@xxxxxxxxxxx>
> ---
>  drivers/infiniband/hw/cxgb4/cm.c | 17 ++++++++++-------
>  1 file changed, 10 insertions(+), 7 deletions(-)

Applied to for-next

Thanks,
Jason



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux