]> git.hungrycats.org Git - linux/commit
[PATCH] USB: fix uhci "host controller process error"
authorDuncan Sands <baldrick@wanadoo.fr>
Tue, 2 Sep 2003 09:50:21 +0000 (02:50 -0700)
committerGreg Kroah-Hartman <greg@kroah.com>
Tue, 2 Sep 2003 09:50:21 +0000 (02:50 -0700)
commit235d069091607d02f9e02739cbf2af528205d20a
treeeac0c453224510f6c3891fac6f853a2dacb47818
parent0bc1a622ce798864a08e23e3dbd6f5bb1d094f69
[PATCH] USB: fix uhci "host controller process error"

By the way, let me explain what the problem was with uhci-hcd.  The usb
hardware directly accesses your computers memory.  The bug is that it
could still be accessing a bit of memory after uhci-hcd thought it had
finished with it and freed up the memory.  This bug has always existed,
and I guess led to occasional mysterious data corruption, when some
other part of the kernel started using that bit of memory while the usb
hardware was still playing with it.  You turned on the "slab debugging"
option, right?  With this turned on, when uhci-hcd frees the memory it
gets filled with some garbage values.  The usb hardware reads this
garbage and barfs, giving a "process error".  In short, you can also
get rid of the process error messages by turning off slab debugging,
then the data corruption will be silent again!
drivers/usb/host/uhci-hcd.c
drivers/usb/host/uhci-hcd.h