linux/drivers/usb/mon
Pete Zaitcev f1c0a2a3af USB: usbmon: fix read(2)
There's a bug in the usbmon binary reader: When using read() to fetch
the packets and a packet's data is partially read, the next read call
will once again return up to len_cap bytes of data. The b_read counter
is not regarded when determining the remaining chunk size.

So, when dumping USB data with "cat /dev/usbmon0 > usbmon.trace" while
reading from a USB storage device and analyzing the dump file
afterwards it will get out of sync after a couple of packets.

Signed-off-by: Ingo van Lil <inguin@gmx.de>
Signed-off-by: Pete Zaitcev <zaitcev@redhat.com>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2008-11-19 22:01:35 -08:00
..
Kconfig
Makefile
mon_bin.c USB: usbmon: fix read(2) 2008-11-19 22:01:35 -08:00
mon_dma.c
mon_main.c usbmon: fix tiny race exposed by the fastboot patches 2008-10-17 14:40:57 -07:00
mon_stat.c USB: usbmon: use simple_read_from_buffer() 2008-07-21 15:16:31 -07:00
mon_text.c SL*B: drop kmem cache argument from constructor 2008-07-26 12:00:07 -07:00
usb_mon.h