YueHaibing 5941923da2 RDS: IB: fix 'passing zero to ERR_PTR()' warning
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@huawei.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-08-07 13:19:45 -07:00
..
2018-08-01 09:32:35 -07:00
2018-08-01 09:32:35 -07:00
2018-08-01 09:32:35 -07:00
2018-08-01 09:32:35 -07:00
2018-08-01 09:32:35 -07:00
2018-06-12 16:19:22 -07:00
2018-08-01 09:32:35 -07:00
2016-12-26 21:35:39 -05:00
2018-08-01 09:32:35 -07:00
2018-07-23 21:17:44 -07:00
2018-08-01 09:32:35 -07:00
2016-06-18 21:34:09 -07:00
2018-07-23 21:17:44 -07:00
2018-08-01 09:32:35 -07:00
2018-08-01 09:32:35 -07:00
2018-07-23 21:17:44 -07:00