]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
RDMA/nes: Fix incorrect casts on 32-bit architectures
authorDon Wood <donald.e.wood@intel.com>
Wed, 8 Apr 2009 21:21:02 +0000 (14:21 -0700)
committerRoland Dreier <rolandd@cisco.com>
Wed, 8 Apr 2009 21:21:02 +0000 (14:21 -0700)
commit7a5efb62f6ae366cefac6be475434906c5061e15
tree834615c1a5928d196aec846cfe2742cea168a78c
parent5d80f8e5a9dc9c9a94d4aeaa567e219a808b8a4a
RDMA/nes: Fix incorrect casts on 32-bit architectures

The were some incorrect casts to unsigned long that caused 64-bit values
to be truncated on 32-bit architectures and made the driver pass invalid
adresses and lengths to the hardware.  The problems were primarily seen
with kernels with highmem configured but some could show up in
non-highmem kernels, too.

Signed-off-by: Don Wood <donald.e.wood@intel.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/nes/nes.h
drivers/infiniband/hw/nes/nes_cm.c