Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

close USB devices before error returns #73

Merged
merged 1 commit into from
Nov 21, 2016
Merged

Conversation

tsunghanliu
Copy link
Contributor

In fwupd, a few of usb devices are not closed when there are some failures of operations. This issue will cause fwupd has some orphan USB nodes inside during fwupd is running. A orphan USB node might introduce memory leak and block some runtime power features as well.

The objective of this commit it to close this kind of USB device.

@hughsie
Copy link
Member

hughsie commented Nov 21, 2016

Looks good, just a few style comments, thanks!

@hughsie
Copy link
Member

hughsie commented Nov 21, 2016

Can you squash those together and push to the branch with --force please -- that's enough to close the review items. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants