diff options
author | Simon Rozman <simon@rozman.si> | 2021-09-28 15:44:02 +0200 |
---|---|---|
committer | Simon Rozman <simon@rozman.si> | 2021-09-28 15:44:02 +0200 |
commit | 97385fd2b25b76fc505c288e557e81747a8eac46 (patch) | |
tree | 0bac553cdbe56f70f126cca6bb0b1d8862bb337e /driver | |
parent | api: adapter: cleanup wintrust shim if install fails (diff) | |
download | wireguard-nt-97385fd2b25b76fc505c288e557e81747a8eac46.tar.xz wireguard-nt-97385fd2b25b76fc505c288e557e81747a8eac46.zip |
driver: socket: fix IRQL annotations
By calling WskInit in SocketInit, the later must be run at passive IRQL.
Actually, it is. This commit only updates the IRQL annotations
accordingly.
Signed-off-by: Simon Rozman <simon@rozman.si>
Diffstat (limited to 'driver')
-rw-r--r-- | driver/ioctl.c | 2 | ||||
-rw-r--r-- | driver/socket.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/driver/ioctl.c b/driver/ioctl.c index 85572c7..2f74c7e 100644 --- a/driver/ioctl.c +++ b/driver/ioctl.c @@ -198,7 +198,7 @@ Get(_In_ DEVICE_OBJECT *DeviceObject, _Inout_ IRP *Irp) Irp->IoStatus.Information = (ULONG_PTR)FinalSize; } -_IRQL_requires_max_(APC_LEVEL) +_IRQL_requires_max_(PASSIVE_LEVEL) _Requires_lock_held_(Wg->DeviceUpdateLock) _Must_inspect_result_ static NTSTATUS diff --git a/driver/socket.h b/driver/socket.h index f7a3bf3..164da8d 100644 --- a/driver/socket.h +++ b/driver/socket.h @@ -45,7 +45,7 @@ _Requires_lock_not_held_(Peer->EndpointLock) VOID SocketClearPeerEndpointSrc(_Inout_ WG_PEER *Peer); -_IRQL_requires_max_(APC_LEVEL) +_IRQL_requires_max_(PASSIVE_LEVEL) _Requires_lock_not_held_(Wg->SocketUpdateLock) NTSTATUS SocketInit(_Inout_ WG_DEVICE *Wg, _In_ UINT16 Port); |