diff options
author | Joe Carnuccio <joe.carnuccio@cavium.com> | 2017-05-24 18:06:21 -0700 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2017-05-24 21:55:50 -0400 |
commit | ce6c668b146cc4f4442111e2bcee4c3af94e1ddf (patch) | |
tree | 1fbf4e070d6af5129e859fe3b64e0166171ad0e8 | |
parent | b95b9452aacf80659ea67bf0948cbfa7e28e5e0b (diff) | |
download | blackbird-op-linux-ce6c668b146cc4f4442111e2bcee4c3af94e1ddf.tar.gz blackbird-op-linux-ce6c668b146cc4f4442111e2bcee4c3af94e1ddf.zip |
scsi: qla2xxx: Modify T262 FW dump template to specify same start/end to debug customer issues
Firmware dump allows for debugging customer issues. This patch fixes
start/end pointer calculation to capture T262 template entry for dump
tool.
Cc: <stable@vger.kernel.org> # v4.10+
Signed-off-by: Joe Carnuccio <joe.carnuccio@cavium.com>
Signed-off-by: Himanshu Madhani <himanshu.madhani@cavium.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
-rw-r--r-- | drivers/scsi/qla2xxx/qla_tmpl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/qla2xxx/qla_tmpl.c b/drivers/scsi/qla2xxx/qla_tmpl.c index 8a58ef3adab4..c197972a3e2d 100644 --- a/drivers/scsi/qla2xxx/qla_tmpl.c +++ b/drivers/scsi/qla2xxx/qla_tmpl.c @@ -371,7 +371,7 @@ qla27xx_fwdt_entry_t262(struct scsi_qla_host *vha, goto done; } - if (end <= start || start == 0 || end == 0) { + if (end < start || start == 0 || end == 0) { ql_dbg(ql_dbg_misc, vha, 0xd023, "%s: unusable range (start=%x end=%x)\n", __func__, ent->t262.end_addr, ent->t262.start_addr); |