]> git.baikalelectronics.ru Git - kernel.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)
commita5cd64d4f09910ebdc74c6804c6b182e1c50bc66
tree834615c1a5928d196aec846cfe2742cea168a78c
parent942961b7e462994c702308f5558add1f061ff27d
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