Here is v2 of my previous 2 patches, new in this version is that the channel state now also gets updated before calling channel_reset in the disconnect path. This fixes a NULL deref in channel-usbredir on client exit / close. Regards, Hans