Skip to content

Commit

Permalink
cdrom: use kmalloced buffers instead of buffers on stack
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Thomas Bogendoerfer authored and Jens Axboe committed Apr 21, 2008
1 parent 0a0c411 commit 22a9189
Showing 1 changed file with 181 additions and 93 deletions.
Loading

0 comments on commit 22a9189

Please sign in to comment.