HF RL Explorer

Repair a verified behavior in apache/nuttx.

Repair a verified behavior in apache/nuttx.: a task in OriGent-RL-Data (Harbor dataset). USB gadget hotplug is broken in the simulator's raw-gadget USB device stack and in the usbdev fs USB function driver: when a gadget is disconnected while one of its endpoint character files is still open, the…

The task

USB gadget hotplug is broken in the simulator's raw-gadget USB device stack and in the usbdev_fs USB function driver: when a gadget is disconnected while one of its endpoint character files is still open, the driver tears down and frees the endpoint state underneath the open file descriptor, and subsequent I/O on…

Part of henryen/OriGent-RL-Data.