dmatest: fix max channels handling
authorDan Williams <dan.j.williams@intel.com>
Wed, 8 Apr 2009 22:08:23 +0000 (15:08 -0700)
committerDan Williams <dan.j.williams@intel.com>
Wed, 8 Apr 2009 22:08:23 +0000 (15:08 -0700)
commitc56c81abe7e684bc6203632d807303eb765690dc
tree463d5d7a89c9627625070e4a829bae44243643d0
parent577c9c456f0e1371cbade38eaf91ae8e8a308555
dmatest: fix max channels handling

The check for reaching max_channels is short circuited by 'continuing'
after successfully adding a channel.

[ Impact: make the 'max_channels' module parameter actually have an effect ]

Cc: <stable@kernel.org>
Reported-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/dma/dmatest.c