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 authored and Jens Axboe committed 2008-04-21 09:50:08 +02:00
1 parent 0a0c4114df
commit 22a9189fd0
1 file changed
+181 -93
+181 -93
View File
File diff suppressed because it is too large. Load diff