cdrom: use kmalloced buffers instead of buffers on stack

If cdrom commands are issued to a scsi drive in most cases the buffer will be
filled via dma.  This leads to bad stack corruption on non coherent platforms,
because the buffers are neither cache line aligned nor is the size a multiple
of the cache line size.  Using kmalloced buffers avoids this.

Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
This commit is contained in:
Thomas Bogendoerfer
2008-03-26 12:09:38 +01:00
committed by Jens Axboe
parent 0a0c4114df
commit 22a9189fd0

File diff suppressed because it is too large Load Diff