]> git.baikalelectronics.ru Git - kernel.git/commit
USB: avoid urb->pipe in usbfs
authorAlan Stern <stern@rowland.harvard.edu>
Mon, 30 Jul 2007 21:09:28 +0000 (17:09 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 12 Oct 2007 21:55:01 +0000 (14:55 -0700)
commit4899ed99428bbb9f5bf47d775f741a7a03a8a916
tree9cb682bb70c73aed99ecddf94f0136566fe3ce7e
parent5fd8d5215a5bbc5eb2fb7cd8fee6a3addf79f53e
USB: avoid urb->pipe in usbfs

This patch (as948) removes most of the references to urb->pipe from
the usbfs routines in devio.c.  The one tricky aspect is in
snoop_urb(), which can be called before the URB is submitted and which
uses usb_urb_dir_in().  For this to work properly, the URB's direction
flag must be set manually in proc_do_submiturb().

The patch also fixes a minor bug; the wValue, wIndex, and wLength
fields were snooped in proc_do_submiturb() without conversion from
le16 to CPU-byte-ordering.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/core/devio.c