]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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>
Mon, 21 Mar 2011 19:44:41 +0000 (12:44 -0700)
commit53798a65764d6ff1ce4c83263a2a2d1b621b7f29
tree6ee03c12748f2a4aff160771710fada29b4bfd96
parent6e725f28b5c4298e06917269a7a7d33993f320cc
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