From: Tom Rini Date: Wed, 2 Apr 2014 17:18:27 -0400 Subject: [U-Boot] ahci: Fix data abort on multiple scsi resets. In-Reply-To: <1396362400-32305-1-git-send-email-rogerq@ti.com> References: <1396362400-32305-1-git-send-email-rogerq@ti.com> Message-ID: <20140402211827.GC16360@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue, Apr 01, 2014 at 05:26:40PM +0300, Roger Quadros wrote: > Commit 2faf5fb82ed6 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: 2faf5fb82ed6 (ahci: Fix cache align error messages) > > Reported-by: Eli Nidam > Signed-off-by: Roger Quadros Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: