Skip to content

Use the supplied libusb handle for host bulk reads - #77

Merged
fjtrujy merged 1 commit into
masterfrom
fix/host-usb-bulk-read-handle
Oct 26, 2026
Merged

fjtrujy merged 1 commit into
masterfrom
fix/host-usb-bulk-read-handle

Conversation

@fjtrujy

@fjtrujy fjtrujy commented Oct 26, 2026

Copy link
Copy Markdown
Member

Scope

Fix a standalone Mac host bug extracted from #72: euid_usb_bulk_read(dev, ...) previously passed the global usbhdr to libusb_bulk_transfer rather than using the supplied dev handle.

This one-line correction makes reads use the caller-requested connection. No directory, PSP firmware, or long-uptime recovery code is included.

Verification

  • make -C usbhostfs_pc -j4 on macOS: passed (only the pre-existing unrelated newpathlen warning).
  • git diff --check: passed.

Split from #72 for independent review and merge.

Read from the supplied device handle instead of the global handle, keeping transfers associated with the correct connection.

@davidgfnet davidgfnet left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! That was an oopsie there :D

@fjtrujy
fjtrujy merged commit 2710cb7 into master Oct 26, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants