svcrdma: Cleanup sparse warnings in the svcrdma module
[GitHub/moto-9609/android_kernel_motorola_exynos9610.git] / include / linux / sunrpc / svc_rdma.h
index c14fe86dac594f069a08342f1790c03909586c41..d205e9f938c651b9f399db0d634487bbd26f836a 100644 (file)
@@ -292,7 +292,7 @@ svc_rdma_get_reply_array(struct rpcrdma_msg *rmsgp)
        if (wr_ary) {
                rp_ary = (struct rpcrdma_write_array *)
                        &wr_ary->
-                       wc_array[wr_ary->wc_nchunks].wc_target.rs_length;
+                       wc_array[ntohl(wr_ary->wc_nchunks)].wc_target.rs_length;
 
                goto found_it;
        }