hvc_iucv: allocate memory buffers for IUCV in zone DMA
authorHendrik Brueckner <brueckner@linux.vnet.ibm.com>
Mon, 8 Mar 2010 11:25:15 +0000 (12:25 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 17 Feb 2011 23:36:52 +0000 (15:36 -0800)
commitf3a234342aa4ceb45adf1e11c16b11fdb297300c
tree2d905818d090890ac58f881837587a708f82b973
parent47aab12693ef835f80c1d49f0f24b062dcac629b
hvc_iucv: allocate memory buffers for IUCV in zone DMA

commit 91a970d9889c7d6f451ee91ed361d0f0119d3778 upstream.

The device driver must allocate memory for IUCV buffers with GFP_DMA,
because IUCV cannot address memory above 2GB (31bit addresses only).

Because the IUCV ignores the higher bits of the address, sending and
receiving IUCV data with this driver might cause memory corruptions.

Signed-off-by: Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: maximilian attems <max@stro.at>
drivers/char/hvc_iucv.c