firewire: ohci: replace vm_map_ram() with vmap()
authorClemens Ladisch <clemens@ladisch.de>
Sun, 16 Nov 2014 20:08:49 +0000 (21:08 +0100)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Wed, 19 Nov 2014 10:57:50 +0000 (11:57 +0100)
commit51b04d59c27430a57c347b55478415c342009035
tree498e6a03b0c238e90b1587362f5b1e714ec30890
parentfc14f9c1272f62c3e8d01300f52467c0d9af50f9
firewire: ohci: replace vm_map_ram() with vmap()

vm_map_ram() is intended for short-lived objects, so using it for the AR
buffers could fragment address space, especially on a 32-bit machine.
For an allocation that lives as long as the device, vmap() is the better
choice.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
drivers/firewire/ohci.c