[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20180807.132005.2055315056779068667.davem@davemloft.net>
Date: Tue, 07 Aug 2018 13:20:05 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: yuehaibing@...wei.com
Cc: santosh.shilimkar@...cle.com, linux-kernel@...r.kernel.org,
netdev@...r.kernel.org, linux-rdma@...r.kernel.org,
rds-devel@....oracle.com
Subject: Re: [PATCH net-next] RDS: IB: fix 'passing zero to ERR_PTR()'
warning
From: YueHaibing <yuehaibing@...wei.com>
Date: Tue, 7 Aug 2018 19:34:16 +0800
> Fix a static code checker warning:
> net/rds/ib_frmr.c:82 rds_ib_alloc_frmr() warn: passing zero to 'ERR_PTR'
>
> The error path for ib_alloc_mr failure should set err to PTR_ERR.
>
> Fixes: 1659185fb4d0 ("RDS: IB: Support Fastreg MR (FRMR) memory registration mode")
> Signed-off-by: YueHaibing <yuehaibing@...wei.com>
Applied to net-next, thanks.
Powered by blists - more mailing lists