summaryrefslogtreecommitdiff
path: root/drivers/of/Makefile
diff options
context:
space:
mode:
authorSarah Sharp <sarah.a.sharp@linux.intel.com>2011-12-02 11:55:44 -0800
committerSebastian Andrzej Siewior <bigeasy@linutronix.de>2011-12-22 10:12:54 +0100
commitea9da1c79eb9a28176550d0b8ba9166e6e5f42b8 (patch)
tree658a52b671d92b75db90153a832434c82504a4f7 /drivers/of/Makefile
parent5611cc4572e889b62a7b4c72a413536bf6a9c416 (diff)
UAS: Re-add workqueue items if submission fails.
If the original submission (or allocation) of the URBs for a SCSI command fails, the UAS driver sticks the command structure in a workqueue and schedules uas_do_work() to run. That function removes the entire queue before walking across it and attempting to resubmit. Unfortunately, if the second submission fails, we will leak memory (because an allocated URB was not submitted) and possibly leave the SCSI command partially enqueued on some of the stream rings. Fix this by checking whether the second submission failed and re-queueing the command to the UAS workqueue and scheduling it. Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com> Cc: Matthew Wilcox <willy@linux.intel.com> Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Diffstat (limited to 'drivers/of/Makefile')
0 files changed, 0 insertions, 0 deletions