diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-10 13:36:08 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-10 13:36:08 -0500 |
commit | d04baa157d1b35cbd27c87b4a13111d9675b61f3 (patch) | |
tree | c46966fbea1c34bed2bd38629ce948d5a088281c /drivers/scsi/be2iscsi/be_main.c | |
parent | 88266917b518e2ca954d85983470592aaaf82993 (diff) | |
parent | 5c41dc3a79150e93e5d050871a10b761be8281a1 (diff) |
Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6
SCSI updates for post 3.2 merge window
* tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6: (67 commits)
[SCSI] lpfc 8.3.28: Update driver version to 8.3.28
[SCSI] lpfc 8.3.28: Add Loopback support for SLI4 adapters
[SCSI] lpfc 8.3.28: Critical Miscellaneous fixes
[SCSI] Lpfc 8.3.28: FC and SCSI Discovery Fixes
[SCSI] lpfc 8.3.28: Add support for ABTS failure handling
[SCSI] lpfc 8.3.28: SLI fixes and added SLI4 support
[SCSI] lpfc 8.3.28: Miscellaneous fixes in sysfs and mgmt interfaces
[SCSI] mpt2sas: Removed redundant calling of _scsih_probe_devices() from _scsih_probe
[SCSI] mac_scsi: Remove obsolete IRQ_FLG_* users
[SCSI] qla4xxx: Update driver version to 5.02.00-k10
[SCSI] qla4xxx: check for FW alive before calling chip_reset
[SCSI] qla4xxx: Fix qla4xxx_dump_buffer to dump buffer correctly
[SCSI] qla4xxx: Fix the IDC locking mechanism
[SCSI] qla4xxx: Wait for disable_acb before doing set_acb
[SCSI] qla4xxx: Don't recover adapter if device state is FAILED
[SCSI] qla4xxx: fix call trace on rmmod with ql4xdontresethba=1
[SCSI] qla4xxx: Fix CPU lockups when ql4xdontresethba set
[SCSI] qla4xxx: Perform context resets in case of context failures.
[SCSI] iscsi class: export pid of process that created
[SCSI] mpt2sas: Remove unused duplicate diag_buffer_enable param
...
Diffstat (limited to 'drivers/scsi/be2iscsi/be_main.c')
-rw-r--r-- | drivers/scsi/be2iscsi/be_main.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/scsi/be2iscsi/be_main.c b/drivers/scsi/be2iscsi/be_main.c index 797a43994b55..375756fa95cf 100644 --- a/drivers/scsi/be2iscsi/be_main.c +++ b/drivers/scsi/be2iscsi/be_main.c | |||
@@ -1105,7 +1105,6 @@ be_complete_io(struct beiscsi_conn *beiscsi_conn, | |||
1105 | struct be_status_bhs *sts_bhs = | 1105 | struct be_status_bhs *sts_bhs = |
1106 | (struct be_status_bhs *)io_task->cmd_bhs; | 1106 | (struct be_status_bhs *)io_task->cmd_bhs; |
1107 | struct iscsi_conn *conn = beiscsi_conn->conn; | 1107 | struct iscsi_conn *conn = beiscsi_conn->conn; |
1108 | unsigned int sense_len; | ||
1109 | unsigned char *sense; | 1108 | unsigned char *sense; |
1110 | u32 resid = 0, exp_cmdsn, max_cmdsn; | 1109 | u32 resid = 0, exp_cmdsn, max_cmdsn; |
1111 | u8 rsp, status, flags; | 1110 | u8 rsp, status, flags; |
@@ -1153,9 +1152,11 @@ be_complete_io(struct beiscsi_conn *beiscsi_conn, | |||
1153 | } | 1152 | } |
1154 | 1153 | ||
1155 | if (status == SAM_STAT_CHECK_CONDITION) { | 1154 | if (status == SAM_STAT_CHECK_CONDITION) { |
1155 | u16 sense_len; | ||
1156 | unsigned short *slen = (unsigned short *)sts_bhs->sense_info; | 1156 | unsigned short *slen = (unsigned short *)sts_bhs->sense_info; |
1157 | |||
1157 | sense = sts_bhs->sense_info + sizeof(unsigned short); | 1158 | sense = sts_bhs->sense_info + sizeof(unsigned short); |
1158 | sense_len = cpu_to_be16(*slen); | 1159 | sense_len = be16_to_cpu(*slen); |
1159 | memcpy(task->sc->sense_buffer, sense, | 1160 | memcpy(task->sc->sense_buffer, sense, |
1160 | min_t(u16, sense_len, SCSI_SENSE_BUFFERSIZE)); | 1161 | min_t(u16, sense_len, SCSI_SENSE_BUFFERSIZE)); |
1161 | } | 1162 | } |