Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix BSOD on shutdown when DriverEntry fails
The registered power callback needs to be unregistered when ShvLoad happens to fail, as DriverUnload is not called when DriverEntry does not succeed. Code before patch allowed to create a situation, where ShvLoad in DriverEntry failed, which resulted in the leak of PowerCallback, which - on machine shutdown/reboot - resulted in critical pagefault in the area of the unloaded driver and the system went blue.
- Loading branch information