libata: don't use on-stack sense buffer
authorTejun Heo <tj@kernel.org>
Mon, 2 Mar 2009 09:55:16 +0000 (18:55 +0900)
committerJeff Garzik <jgarzik@redhat.com>
Thu, 5 Mar 2009 12:25:10 +0000 (07:25 -0500)
commitb53570814692db79c3525523b6e9ec9874416c04
tree854cfbcb231bb0914be2b0de9ea73dbf5cc07e6b
parent84bda12af31f930e4200c5244aa111de2485d7b0
libata: don't use on-stack sense buffer

sense_buffer is used as DMA target and shouldn't be allocated on
stack.  Use ap->sector_buf instead.  This problem is spotted by Chuck
Ebbert.

Signed-off-by: Tejun Heo <tj@kernel.org>
Reported-by: Chuck Ebbert <cebbert@redhat.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/ata/libata-eh.c