ERR_PTR() dereference in net/rds/ib.c
authorDan Carpenter <error27@gmail.com>
Thu, 9 Apr 2009 14:09:46 +0000 (14:09 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 10 Apr 2009 00:21:22 +0000 (17:21 -0700)
commit94713bab649736177a1c33a39b7bb33cbd5af3a5
treece5bb57051bd5d798308120b540985188c5e5498
parent5d57eeb52ae71a03c8e083a9b0a818a9b63ca440
ERR_PTR() dereference in net/rds/ib.c

rdma_create_id() doesn't return NULL, only ERR_PTR().

Found by smatch (http://repo.or.cz/w/smatch.git).  Compile tested.

regards,
dan carpenter

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Andy Grover <andy.grover@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/rds/ib.c