How to stop BSOD when an new message is send from User mode to kernel mode Legacy driver..

Hi I have a file system Legacy filter driver. I have a client MFC application communication to it and it work fine.Whenever I try to send any new messages ( which is not present in the the driver) I face BSOD issue. I have proved the sample code .Thanks in advance Can you provide any solutions.

NTSTATUS cwDevIoControl(PDEVICE_OBJECT DeviceObject, PIRP Irp)
{ LONG lControlCode;
NTSTATUS status;
status = STATUS_SUCCESS;
ioStack = IoGetCurrentIrpStackLocation(Irp);
inBuf = Irp->AssociatedIrp.SystemBuffer;
outBuf = Irp->AssociatedIrp.SystemBuffer;
lControlCode = ioStack->Parameters.DeviceIoControl.IoControlCode;
Irp->IoStatus.Information = 0;//
switch(lControlCode)
{
case 1:
break;
case 2:
break;
default:
IoSkipCurrentIrpStackLocation( Irp );// Bsod here when new messages are send from user mode
return IoCallDriver( , Irp );
}
Irp->IoStatus.Status = status;
IoCompleteRequest(Irp, IO_NO_INCREMENT);
return status;
}