diff options
| author | Petr Uzel <[email protected]> | 2011-10-21 13:31:09 +0200 |
|---|---|---|
| committer | James Bottomley <[email protected]> | 2011-10-30 13:27:28 +0400 |
| commit | c68bf8eeaa57c852e74adcf597237be149eef830 (patch) | |
| tree | bd631c9731acc98e562fe202da55b050637c203f /tools/perf/scripts/python | |
| parent | 3308511c93e6ad0d3c58984ecd6e5e57f96b12c8 (diff) | |
[SCSI] st: fix race in st_scsi_execute_end
The call to complete() in st_scsi_execute_end() wakes up sleeping thread
in write_behind_check(), which frees the st_request, thus invalidating
the pointer to the associated bio structure, which is then passed to the
blk_rq_unmap_user(). Fix by storing pointer to bio structure into
temporary local variable.
This bug is present since at least linux-2.6.32.
CC: [email protected]
Signed-off-by: Petr Uzel <[email protected]>
Reported-by: Juergen Groß <[email protected]>
Reviewed-by: Jan Kara <[email protected]>
Acked-by: Kai Mäkisara <[email protected]>
Signed-off-by: James Bottomley <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions