[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] [PATCH] Fix USB devices connected handling



On 02/18/14 11:29, David Gálvez wrote:
Please Alan commit this patch.

Thank you!

Commit message:

Fix for when an USB device initialization fails, the USB device struct
data for others connected devices is messed up.

Hi David,

Thanks for spotting the second part. But the first fix can't be right.

When the devnum is allocated it's always +1, so the dev_index-- has to be
decremented to get to the correct structure to zero out.

Am I missing something ?

Alan.