Jinoh Kang (@iamahuman) commented about dlls/ntoskrnl.exe/pnp.c:
static NTSTATUS get_device_id( DEVICE_OBJECT *device, BUS_QUERY_ID_TYPE type, WCHAR **id ) { IO_STACK_LOCATION *irpsp;
- IO_STATUS_BLOCK irp_status;
- IO_STATUS_BLOCK irp_status = { .Information = 0 };
This is missing the corresponding NULL check.