|
@@ -598,7 +598,10 @@ int svc_rdma_sendto(struct svc_rqst *rqstp)
|
|
inline_bytes = rqstp->rq_res.len;
|
|
inline_bytes = rqstp->rq_res.len;
|
|
|
|
|
|
/* Create the RDMA response header */
|
|
/* Create the RDMA response header */
|
|
- res_page = alloc_page(GFP_KERNEL | __GFP_NOFAIL);
|
|
|
|
|
|
+ ret = -ENOMEM;
|
|
|
|
+ res_page = alloc_page(GFP_KERNEL);
|
|
|
|
+ if (!res_page)
|
|
|
|
+ goto err0;
|
|
rdma_resp = page_address(res_page);
|
|
rdma_resp = page_address(res_page);
|
|
reply_ary = svc_rdma_get_reply_array(rdma_argp);
|
|
reply_ary = svc_rdma_get_reply_array(rdma_argp);
|
|
if (reply_ary)
|
|
if (reply_ary)
|