diff options
author | Vikram Auradkar <auradkar@google.com> | 2019-11-14 11:09:04 +0100 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2019-11-20 03:37:33 +0100 |
commit | a88d9db94c4c9fb2b6ce9f5748928bef46aa9885 (patch) | |
tree | 756c71b5a5c51f2afcc1820d31e1162ccb9f3b72 /LICENSES | |
parent | scsi: pm80xx: Increase timeout for pm80xx mpi_uninit_check (diff) | |
download | linux-a88d9db94c4c9fb2b6ce9f5748928bef46aa9885.tar.xz linux-a88d9db94c4c9fb2b6ce9f5748928bef46aa9885.zip |
scsi: pm80xx: Fix dereferencing dangling pointer
sas_task structure should not be used after task_done is called. If the
device is gone or not attached, we call task_done on t and continue to use
in the sas_task in rest of the function. task_done is pointing to
sas_ata_task_done, may free the memory associated with the task before
returning.
Link: https://lore.kernel.org/r/20191114100910.6153-8-deepak.ukey@microchip.com
Acked-by: Jack Wang <jinpu.wang@cloud.ionos.com>
Signed-off-by: Vikram Auradkar <auradkar@google.com>
Signed-off-by: Deepak Ukey <deepak.ukey@microchip.com>
Signed-off-by: Viswas G <Viswas.G@microchip.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'LICENSES')
0 files changed, 0 insertions, 0 deletions