s390/qdio: for_each macro correctness
authorJose Alonso <joalonsof@gmail.com>
Sun, 26 Jan 2014 10:54:18 +0000 (08:54 -0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 29 Jan 2014 08:07:50 +0000 (09:07 +0100)
commitdbb0dd021dc282fe65c4f66c86821419850c43cc
treeedec0ead192954a9bc632f56c0fe4c7f619223b8
parent0e47c969c65e213421450c31043353ebe3c67e0c
s390/qdio: for_each macro correctness

I observed that there are for_each macros that do an extra memory access
beyond the defined area.
Normally this does not cause problems.
But, this can cause exceptions. For example: if the area is allocated at
the end of a page and the next page is not accessible.

For correctness, I suggest changing the arguments of the 'for loop' like
others 'for_each' do in the kernel.

Signed-off-by: Jose Alonso <joalonsof@gmail.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/cio/qdio.h