]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/cxgb3: Clean up properly on FW mismatch failures
authorSteve Wise <swise@opengridcomputing.com>
Wed, 9 Sep 2009 18:25:56 +0000 (11:25 -0700)
committerRoland Dreier <rolandd@cisco.com>
Wed, 9 Sep 2009 18:25:56 +0000 (11:25 -0700)
commit61de728520ce34826b9be1134adfa25454b05de2
tree05e3ae0b2e1eb031849e8202d1b8a0ace0b22536
parent555c1bcb50b6fc8412a78447bb444d9e5f6a4609
RDMA/cxgb3: Clean up properly on FW mismatch failures

FW mismatches can cause a crash in the iw_cxgb3 event handler.

- NULL the t3cdev->ulp pointer on failures in cxio_rdev_open()
- Silently ignore events when the ulp ptr is NULL in iwch_err_handler()

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/cxgb3/cxio_hal.c
drivers/infiniband/hw/cxgb3/iwch.c