From 86aa665cbc01e6f9e0bc6fffbfa1f8800d836947 Mon Sep 17 00:00:00 2001 From: Koen Zandberg Date: Thu, 4 Nov 2021 13:45:19 +0100 Subject: [PATCH] usbus_hid: Fix possible null pointer dereference --- sys/usb/usbus/hid/hid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/usb/usbus/hid/hid.c b/sys/usb/usbus/hid/hid.c index c8d0e1289c..d35e357014 100644 --- a/sys/usb/usbus/hid/hid.c +++ b/sys/usb/usbus/hid/hid.c @@ -174,7 +174,7 @@ static int _control_handler(usbus_t *usbus, usbus_handler_t *handler, hid->report_desc_size); } else if (desc_type == USB_HID_DESCR_HID) { - _gen_hid_descriptor(usbus, NULL); + _gen_hid_descriptor(usbus, hid); } break; }