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

rdma_create_id() returns ERR_PTR() not null.

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/iw.c