]> git.baikalelectronics.ru Git - kernel.git/commit
USB: OHCI: fix bugs in debug routines
authorAlan Stern <stern@rowland.harvard.edu>
Thu, 17 Jul 2014 20:32:26 +0000 (16:32 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Jul 2014 00:05:07 +0000 (17:05 -0700)
commit9ee133278cda6b073c1352f040103ca5100f1939
treeae987790948d59a364fe7fec6dd14decf70c71a2
parent4ebd8bb76f31a9ac9cf56016ee0245b27e37bde8
USB: OHCI: fix bugs in debug routines

The debug routine fill_async_buffer() in ohci-hcd is buggy: It never
produces any output because it forgets to initialize the output buffer
size.  Also, the debug routine ohci_dump() has an unused argument.

This patch adds the correct initialization and removes the unused
argument.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
CC: <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ohci-dbg.c
drivers/usb/host/ohci-hcd.c