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
9p: fix multiple NULL-pointer-dereferences
[linux-2.6-microblaze.git]
/
net
/
9p
/
trans_rdma.c
diff --git
a/net/9p/trans_rdma.c
b/net/9p/trans_rdma.c
index
2649b2e
..
2ab4574
100644
(file)
--- a/
net/9p/trans_rdma.c
+++ b/
net/9p/trans_rdma.c
@@
-645,6
+645,9
@@
rdma_create_trans(struct p9_client *client, const char *addr, char *args)
struct rdma_conn_param conn_param;
struct ib_qp_init_attr qp_attr;
+ if (addr == NULL)
+ return -EINVAL;
+
/* Parse the transport specific mount options */
err = parse_opts(args, &opts);
if (err < 0)