OSDN Git Service

xHCI: check enqueue pointer advance into dequeue seg
authorAndiry Xu <andiry.xu@amd.com>
Mon, 5 Mar 2012 09:49:40 +0000 (17:49 +0800)
committerSarah Sharp <sarah.a.sharp@linux.intel.com>
Tue, 13 Mar 2012 16:30:44 +0000 (09:30 -0700)
commit085deb16845ee0b25385274b39c70cc07e6e4140
tree7e08185fde1567ba14095f4bebe7a9c5c7fd1d36
parent2fdcd47b6980f4e26a97811a17f5be7cb919ef90
xHCI: check enqueue pointer advance into dequeue seg

When a urb is submitted to xHCI driver, check if queueing the urb will make
the enqueue pointer advance into dequeue seg and expand the ring if it
occurs. This is to guarantee the safety of ring expansion.

Signed-off-by: Andiry Xu <andiry.xu@amd.com>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Tested-by: Paul Zimmerman <Paul.Zimmerman@synopsys.com>
drivers/usb/host/xhci-ring.c