# USB stack improvements GSoC - Week 5

DevFeed: [USB stack improvements GSoC - Week 5](<https://devfeed.tech/articles/usb-stack-improvements-gsoc-week-5-33044.md>)

Original publisher: [Read original article](<https://reactos.org/blogs/usb-stack-improvements-gsoc-week-5/>)

Published: 2016-06-27T00:00:00Z

Content type: article

Language: en

Sources: [Front Page on ReactOS Website](<https://devfeed.tech/sources/front-page-on-reactos-website.md>)

Topics: [USB](<https://devfeed.tech/topics/usb.md>), [debugging](<https://devfeed.tech/topics/debugging.md>), [patches](<https://devfeed.tech/topics/patches.md>), [Testing](<https://devfeed.tech/topics/testing.md>)

Tags: [code-review](<https://devfeed.tech/tags/code-review.md>), [debug](<https://devfeed.tech/tags/debug.md>), [debugging](<https://devfeed.tech/tags/debugging.md>), [free](<https://devfeed.tech/tags/free.md>), [git](<https://devfeed.tech/tags/git.md>), [github](<https://devfeed.tech/tags/github.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [os](<https://devfeed.tech/tags/os.md>), [patches](<https://devfeed.tech/tags/patches.md>), [react](<https://devfeed.tech/tags/react.md>), [reactos](<https://devfeed.tech/tags/reactos.md>), [testing](<https://devfeed.tech/tags/testing.md>), [usb](<https://devfeed.tech/tags/usb.md>), [win32](<https://devfeed.tech/tags/win32.md>), [winapi](<https://devfeed.tech/tags/winapi.md>)

## AI overview

This week-five development update describes USB stack improvements in ReactOS, including fixes to the usbhub PnP handler, memory-management fixes, infrastructure for tracking device PnP state, and investigation of UHCI errors. It also explains the contributor's use of GitHub for code reviews and plans to continue fixing PnP routines.

## Source excerpt

After long period of investigation and debugging, this week I have commited first patches for review. And they make difference under 2k3 :) About fixes I've done As continuation of usbhub's PnP handler debug and testing, this week I have commited patches with fixes. The most important ones are described below (same description is given in commit messages too). PDO: Changed handling of IRP_MN_REMOVE_DEVICE On this IRP we should free recources and delete child's PDO ONLY if it isn't presented physically on the bus.