diff --git a/[refs] b/[refs] index b8b200f4d724..0d23d711277c 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 5d57eeb52ae71a03c8e083a9b0a818a9b63ca440 +refs/heads/master: 94713bab649736177a1c33a39b7bb33cbd5af3a5 diff --git a/trunk/net/rds/ib.c b/trunk/net/rds/ib.c index 4933b380985e..b9bcd32431e1 100644 --- a/trunk/net/rds/ib.c +++ b/trunk/net/rds/ib.c @@ -224,8 +224,8 @@ static int rds_ib_laddr_check(__be32 addr) * IB and iWARP capable NICs. */ cm_id = rdma_create_id(NULL, NULL, RDMA_PS_TCP); - if (!cm_id) - return -EADDRNOTAVAIL; + if (IS_ERR(cm_id)) + return PTR_ERR(cm_id); memset(&sin, 0, sizeof(sin)); sin.sin_family = AF_INET;