summaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-amd-fch.c
diff options
context:
space:
mode:
authorVikram Auradkar <auradkar@google.com>2019-11-14 15:39:04 +0530
committerMartin K. Petersen <martin.petersen@oracle.com>2019-11-19 21:37:33 -0500
commita88d9db94c4c9fb2b6ce9f5748928bef46aa9885 (patch)
tree756c71b5a5c51f2afcc1820d31e1162ccb9f3b72 /drivers/gpio/gpio-amd-fch.c
parente90e236250e9edd2584a3405d0b2482ef687a637 (diff)
downloadlinux-a88d9db94c4c9fb2b6ce9f5748928bef46aa9885.tar.bz2
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 'drivers/gpio/gpio-amd-fch.c')
0 files changed, 0 insertions, 0 deletions