RDMA/nes: Don't generate async events for unregistered devices
authorMaciej Sosnowski <maciej.sosnowski@intel.com>
Thu, 3 Feb 2011 23:55:26 +0000 (15:55 -0800)
committerRoland Dreier <roland@purestorage.com>
Thu, 3 Feb 2011 23:55:26 +0000 (15:55 -0800)
commit25a54a6bb87dc966f6a3fc1f2ac6e88db1f5614c
tree5ac11304c2b46557439fd22d688e2d93bd70fce3
parent831d52bc153971b70e64eccfbed2b232394f22f8
RDMA/nes: Don't generate async events for unregistered devices

nes_port_ibevent() should not be called when the nes RDMA device is not
registered with the RDMA core.  Add missing checks of of_device_registered flag.

Signed-off-by: Maciej Sosnowski <maciej.sosnowski@intel.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/nes/nes_hw.c