Added patch to fix issues when driver dispatch routine returns different status codes.