From 1ca5b6caa9f66d01ffb3af953e06f5d9fe9ba732 Mon Sep 17 00:00:00 2001 From: Luke Date: Thu, 12 Aug 2021 04:48:54 +0100 Subject: Kernel/USB: Pass in device address as last argument to Pipe constructor The order of poll_interval and device_address was flipped. --- Kernel/Bus/USB/USBPipe.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Kernel/Bus') diff --git a/Kernel/Bus/USB/USBPipe.cpp b/Kernel/Bus/USB/USBPipe.cpp index 92c7a161c3..a4bd6d3720 100644 --- a/Kernel/Bus/USB/USBPipe.cpp +++ b/Kernel/Bus/USB/USBPipe.cpp @@ -13,7 +13,7 @@ namespace Kernel::USB { KResultOr> Pipe::try_create_pipe(USBController const& controller, Type type, Direction direction, u8 endpoint_address, u16 max_packet_size, i8 device_address, u8 poll_interval) { - auto pipe = adopt_own_if_nonnull(new (nothrow) Pipe(controller, type, direction, endpoint_address, max_packet_size, device_address, poll_interval)); + auto pipe = adopt_own_if_nonnull(new (nothrow) Pipe(controller, type, direction, endpoint_address, max_packet_size, poll_interval, device_address)); if (!pipe) return ENOMEM; -- cgit v1.2.3