]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: pm80xx: panic on ncq error cleaning up the read log.
authorViswas G <Viswas.G@microsemi.com>
Wed, 18 Oct 2017 06:09:14 +0000 (11:39 +0530)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 19 Oct 2017 00:55:44 +0000 (20:55 -0400)
commit47a5c739b5cbe31d390b300650d7e656a52e45dd
treef653cfdf181cedddb1ae55a0b11f0a9336e090af
parent271754ad7ac2c01632b0ad1860c249f9d4ad7e2d
scsi: pm80xx: panic on ncq error cleaning up the read log.

when there's an error in 'ncq mode' the host has to read the ncq error
log (10h) to clear the error state. however, the ccb that is setup for
doing this doesn't setup the ccb so that the previous state is
cleared. if the ccb was previously used for an IO n_elems is set and
pm8001_ccb_task_free() treats this as the signal to go free a
scatter-gather list (that's already been freed).

Signed-off-by: Deepak Ukey <deepak.ukey@microsemi.com>
Signed-off-by: Viswas G <Viswas.G@microsemi.com>
Acked-by: Jack Wang <jinpu.wang@profitbricks.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/pm8001/pm80xx_hwi.c