diff options
author | Ben Hutchings <ben@decadent.org.uk> | 2014-01-06 04:16:32 +0100 |
---|---|---|
committer | Sarah Sharp <sarah.a.sharp@linux.intel.com> | 2014-01-08 20:00:10 +0100 |
commit | d6c9ea9069af684358efedcaf2f2f687f51c58ee (patch) | |
tree | 732bb8078c9afabbea795da9f53d3858c15dde58 /sound/firewire | |
parent | usb: gadget: remove unused variable in gr_queue_int() (diff) | |
download | linux-d6c9ea9069af684358efedcaf2f2f687f51c58ee.tar.xz linux-d6c9ea9069af684358efedcaf2f2f687f51c58ee.zip |
xhci: Avoid infinite loop when sg urb requires too many trbs
Currently prepare_ring() returns -ENOMEM if the urb won't fit into a
single ring segment. usb_sg_wait() treats this error as a temporary
condition and will keep retrying until something else goes wrong.
The number of retries should be limited in usb_sg_wait(), but also
prepare_ring() should not return an error code that suggests it might
be worth retrying. Change it to -EINVAL.
Reported-by: jidanni@jidanni.org
References: http://bugs.debian.org/733907
Fixes: 35773dac5f86 ('usb: xhci: Link TRB must not occur within a USB payload burst')
Cc: stable <stable@vger.kernel.org> # 3.12
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Diffstat (limited to 'sound/firewire')
0 files changed, 0 insertions, 0 deletions