projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ERR_PTR() dereference in net/rds/iw.c
[linux-2.6-microblaze.git]
/
net
/
rds
/
iw.c
diff --git
a/net/rds/iw.c
b/net/rds/iw.c
index
b732efb
..
d16e1cb
100644
(file)
--- a/
net/rds/iw.c
+++ b/
net/rds/iw.c
@@
-233,8
+233,8
@@
static int rds_iw_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;