Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=22a9189fd073db3d03a4cf8b8c098aa207602de1
Commit: 22a9189fd073db3d03a4cf8b8c098aa207602de1
Parent: 0a0c4114df4a6903bccb65b06cabb6ddc968f877
Author: Thomas Bogendoerfer <tsbogend@xxxxxxxxxxxxxxxx>
AuthorDate: Wed Mar 26 12:09:38 2008 +0100
Committer: Jens Axboe <jens.axboe@xxxxxxxxxx>
CommitDate: Mon Apr 21 09:50:08 2008 +0200
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@xxxxxxxxxxxxxxxx>
Signed-off-by: Jens Axboe <jens.axboe@xxxxxxxxxx>
---
drivers/cdrom/cdrom.c | 274 ++++++++++++++++++++++++++++++++-----------------
1 files changed, 181 insertions(+), 93 deletions(-)