diff options
-rw-r--r-- | net/sunrpc/xprtrdma/svc_rdma_transport.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/net/sunrpc/xprtrdma/svc_rdma_transport.c b/net/sunrpc/xprtrdma/svc_rdma_transport.c index 3fa5751af0ec..4e6bbf91a570 100644 --- a/net/sunrpc/xprtrdma/svc_rdma_transport.c +++ b/net/sunrpc/xprtrdma/svc_rdma_transport.c | |||
@@ -678,7 +678,10 @@ static struct svc_xprt *svc_rdma_create(struct svc_serv *serv, | |||
678 | int ret; | 678 | int ret; |
679 | 679 | ||
680 | dprintk("svcrdma: Creating RDMA socket\n"); | 680 | dprintk("svcrdma: Creating RDMA socket\n"); |
681 | 681 | if (sa->sa_family != AF_INET) { | |
682 | dprintk("svcrdma: Address family %d is not supported.\n", sa->sa_family); | ||
683 | return ERR_PTR(-EAFNOSUPPORT); | ||
684 | } | ||
682 | cma_xprt = rdma_create_xprt(serv, 1); | 685 | cma_xprt = rdma_create_xprt(serv, 1); |
683 | if (!cma_xprt) | 686 | if (!cma_xprt) |
684 | return ERR_PTR(-ENOMEM); | 687 | return ERR_PTR(-ENOMEM); |