]> git.baikalelectronics.ru Git - kernel.git/commit
cdrom: use kmalloced buffers instead of buffers on stack
authorThomas Bogendoerfer <tsbogend@alpha.franken.de>
Wed, 26 Mar 2008 11:09:38 +0000 (12:09 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Mon, 21 Apr 2008 07:50:08 +0000 (09:50 +0200)
commit85020028db1d13de952877eee57ad6d852964b11
treefdecb985720f2ca9c283d4b0f35f87e4b477e9e8
parent44e97cd47db23ad0ff464babd713cb45f33f96ba
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>
drivers/cdrom/cdrom.c