ib_api_status_t status;\r
ual_ndi_rej_cm_ioctl_in_t *p_rej = \r
(ual_ndi_rej_cm_ioctl_in_t*)cl_ioctl_in_buf( h_ioctl );\r
+ NTSTATUS ntstatus;\r
UNUSED_PARAM(p_ret_bytes);\r
\r
AL_ENTER( AL_DBG_NDI );\r
/* Check psize */\r
if ( p_rej->pdata_size >= sizeof(p_rej->pdata) )\r
{\r
- h_ioctl->IoStatus.Status = CL_INVALID_PARAMETER;\r
+ ntstatus = CL_INVALID_PARAMETER;\r
goto exit;\r
}\r
\r
NULL, 0, p_rej->pdata, p_rej->pdata_size);\r
if (status != IB_SUCCESS)\r
{\r
- h_ioctl->IoStatus.Status = CL_INVALID_HANDLE;\r
+ ntstatus = CL_INVALID_HANDLE;\r
goto exit;\r
}\r
\r
al_destroy_cep( p_context->h_al, &p_rej->cid, FALSE );\r
- h_ioctl->IoStatus.Status = STATUS_SUCCESS;\r
+ ntstatus = STATUS_SUCCESS;\r
\r
exit:\r
- /* complete the IRP */\r
- h_ioctl->IoStatus.Information = 0;\r
- IoCompleteRequest( h_ioctl, IO_NO_INCREMENT );\r
-\r
AL_EXIT( AL_DBG_NDI );\r
- return CL_COMPLETED;\r
+ return ntstatus;\r
}\r
\r
static cl_status_t\r