diff options
author | <andrew.vasquez@qlogic.com> | 2005-04-17 15:10:41 -0500 |
---|---|---|
committer | James Bottomley <jejb@titanic> | 2005-04-18 13:48:12 -0500 |
commit | 83021920e733aa706926046b6ab61912c0d63943 (patch) | |
tree | e33d19493190076f147912e40207f6956c290eb9 /crypto/aes.c | |
parent | bdf796210e01145fd77bbb3ae644d04f982b6c3b (diff) |
[PATCH] qla2xxx: cleanup DMA mappings...
Don't use cmd->request->nr_hw_segments as it may not be initialized
(SG_IO in particular bypasses anything that initializes this and just
uses scsi_do_req to insert a scsi_request directly on the head of the
queue) and a bogus value here can trip up the checks to make sure that
the number of segments will fit in the queue ring buffer, resulting in
commands that are never completed.
Fix up several issues with PCI DMA mapping and failure to check return
values on the mappings.
Make the check for space in the ring buffer happen after the DMA mapping
is done since any checks done before the mapping has taken place are
bogus.
Doug Ledford <dledford@redhat.com>.
Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'crypto/aes.c')
0 files changed, 0 insertions, 0 deletions