A vulnerability in the Linux kernel's USB 9P filesystem gadget driver (usb9pfs) was fixed by ensuring the disable_usb9pfs() function is called during usb9pfs_disable(). Previously, the disable callback did not properly disable endpoints or free usb_request objects, causing resource leaks and endpoints to remain enabled despite the function's disabled state. This fix prevents memory leaks and race conditions related to USB endpoint handling during host resets or reconfigurations.