diff options
| author | Gilad Broner <gbroner@codeaurora.org> | 2014-12-30 13:15:34 +0200 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-22 10:59:01 -0700 |
| commit | 1478bf7fa32edf87b142046937d0aba5071f3ff4 (patch) | |
| tree | ca878541ec572a19061cfaa48f05f0d3c761bb11 /include | |
| parent | 2d109dcf970558b4397eddac1ed1773a3c8f9a29 (diff) | |
scsi: ufs: verify command tag validity
A race condition appear to exist between request completion when
scsi_done() is called to end the request and set the tag back to
-1 (at blk_queue_end_tag() scsi_end_request), and scsi layer error
handling which aborts the command and reuses it to request sense
data. Sending the request sense is done with tag which was set to -1
and so it is invalid.
Assert command tag passed from scsi layer is valid.
Change-Id: I71b82e1e6aca4bbf316a2a732a42c564ab0d2248
Signed-off-by: Gilad Broner <gbroner@codeaurora.org>
[subhashj@codeaurora.org: resolved trivial merge conflicts]
Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
