usbmon: don't call mon_dmapeek if DMA isn't being used
authorAlan Stern <stern@rowland.harvard.edu>
Wed, 30 Aug 2006 15:35:21 +0000 (11:35 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 27 Sep 2006 18:58:56 +0000 (11:58 -0700)
commit4d6cd48380c4d361cc8ec34359df22377d85d202
tree21f052fc743818d0c14c85505293f96b9274a94c
parent1720058343fa43a1a25bfad9e62ea06e7e9743b6
usbmon: don't call mon_dmapeek if DMA isn't being used

This patch (as755b) fixes a bug in usbmon.  Rather than assuming all
USB host controllers use DMA, the code will check the usb_bus data
structure.  If DMA isn't used, we don't want to try peeking into a
non-existent DMA buffer!

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/mon/mon_main.c
drivers/usb/mon/mon_text.c
drivers/usb/mon/usb_mon.h