• Roger Quadros's avatar
    ahci: Fix data abort on multiple scsi resets. · 3f629711
    Roger Quadros authored
    Commit 2faf5fb8 introduced a regression that causes a data
    abort when running scsi init followed by scsi reset.
    
    There are 2 problems with the original commit
    1) ALLOC_CACHE_ALIGN_BUFFER() allocates memory on the stack but is
    assigned to ataid[port] and used by other functions.
    2) The function ata_scsiop_inquiry() tries to free memory which was
    never allocated on the heap.
    
    Fix these problems by using tmpid as a temporary cache aligned buffer.
    Allocate memory separately for ataid[port] and re-use it if required.
    
    Fixes: 2faf5fb8 (ahci: Fix cache align error messages)
    Reported-by: default avatarEli Nidam <elini@marvell.com>
    Signed-off-by: default avatarRoger Quadros <rogerq@ti.com>
    3f629711
Name
Last commit
Last update
..
Makefile Loading commit data...
ahci.c Loading commit data...
ata_piix.c Loading commit data...
ata_piix.h Loading commit data...
dwc_ahsata.c Loading commit data...
dwc_ahsata.h Loading commit data...
fsl_sata.c Loading commit data...
fsl_sata.h Loading commit data...
ftide020.c Loading commit data...
ftide020.h Loading commit data...
libata.c Loading commit data...
mvsata_ide.c Loading commit data...
mxc_ata.c Loading commit data...
pata_bfin.c Loading commit data...
pata_bfin.h Loading commit data...
sandbox.c Loading commit data...
sata_dwc.c Loading commit data...
sata_dwc.h Loading commit data...
sata_sil.c Loading commit data...
sata_sil.h Loading commit data...
sata_sil3114.c Loading commit data...
sata_sil3114.h Loading commit data...
sil680.c Loading commit data...
sym53c8xx.c Loading commit data...
systemace.c Loading commit data...