]> git.karo-electronics.de Git - karo-tx-linux.git/commit
dmatest: adjust invalid module parameters for number of source buffers
authorAkinobu Mita <akinobu.mita@gmail.com>
Sat, 27 Oct 2012 15:49:32 +0000 (00:49 +0900)
committerVinod Koul <vinod.koul@linux.intel.com>
Mon, 29 Oct 2012 05:52:45 +0000 (11:22 +0530)
commitf04f98e91bd857236f2b2cdbc221c5e8554dc06d
treee6531137fcfdcd32d49e7208637093614cb88c7c
parent2684b6c59364ffc085cfc578d1d51fa7ce4065e3
dmatest: adjust invalid module parameters for number of source buffers

DMA Engine test module has module parameters to set the number of source
buffers for xor and pq operations.  We can set these values larger than the
maximum number of sources that the device can support.  These values are
not adjusted and the unsupported number of source buffers are passed to the
device.  But most drivers don't check it, so unexpected results will happen.

This makes an appropriate adjustment for these module parameters before use.

Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Cc: Vinod Koul <vinod.koul@intel.com>
Cc: Dan Williams <djbw@fb.com>
Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
drivers/dma/dmatest.c