Thread (3 messages) 3 messages, 3 authors, 2018-08-07

Re: [PATCH net-next] RDS: IB: fix 'passing zero to ERR_PTR()' warning

From: Santosh Shilimkar <hidden>
Date: 2018-08-07 17:10:03
Also in: linux-rdma, lkml

On 8/7/2018 4:34 AM, YueHaibing wrote:
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 <redacted>
---
Looks good. Thanks !!

Acked-by: Santosh Shilimkar <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help