[IBAL] Remove PD context from IOCTLs.
[mirror/winof/.git] / core / al / kernel / al_proxy_verbs.c
index a33ba9a..52a8cf5 100644 (file)
@@ -1772,17 +1772,11 @@ proxy_query_av(
                goto proxy_query_av_err;\r
 \r
        status = cpyout_umvbuf( &p_ioctl->out.umv_buf, p_umv_buf );\r
-       if( status == IB_SUCCESS )\r
-       {\r
-               /* Return proxy's PD handle when AV was created */\r
-               p_ioctl->out.pd_context = (void*)h_pd->obj.context;\r
-       }\r
-       else\r
+       if( status != IB_SUCCESS )\r
        {\r
 proxy_query_av_err:\r
                p_ioctl->out.umv_buf = p_ioctl->in.umv_buf;\r
                cl_memclr( &p_ioctl->out.attr, sizeof(ib_av_attr_t) );\r
-               p_ioctl->out.pd_context = NULL;\r
        }\r
        free_umvbuf( p_umv_buf );\r
 \r
@@ -3419,18 +3413,10 @@ proxy_query_mw(
                goto proxy_query_mw_err;\r
 \r
        status = cpyout_umvbuf( &p_ioctl->out.umv_buf, p_umv_buf );\r
-       if( status == IB_SUCCESS )\r
-       {\r
-               /*\r
-                * replace the pd handle with user's pd context for the proxy's PD.\r
-                */\r
-               p_ioctl->out.pd_context = (void*)h_pd->obj.context;\r
-       }\r
-       else\r
+       if( status != IB_SUCCESS )\r
        {\r
 proxy_query_mw_err:\r
                p_ioctl->out.umv_buf = p_ioctl->in.umv_buf;\r
-               p_ioctl->out.pd_context = NULL;\r
                p_ioctl->out.rkey = 0;\r
        }\r
        free_umvbuf( p_umv_buf );\r