]> git.karo-electronics.de Git - karo-tx-linux.git/commit
RDMA/ocrdma: Set event's device member in ocrdma_dispatch_ibevent()
authorRoland Dreier <roland@purestorage.com>
Mon, 16 Apr 2012 19:13:24 +0000 (12:13 -0700)
committerRoland Dreier <roland@purestorage.com>
Mon, 16 Apr 2012 19:13:24 +0000 (12:13 -0700)
commita1300e991fdc568cb76eff05d8f00e17d9a5c80c
tree2f4ab31d173059b4901b99b69384097783205700
parentd01ff55a8569a4af5eeede7f39c01072fd905969
RDMA/ocrdma: Set event's device member in ocrdma_dispatch_ibevent()

We need to set ib_evt.device, or else ib_dispatch_event() will crash
when we call it for unaffiliated events (and consumers may get
confused in their QP/CQ/SRQ event handler for affiliated events).

Also fix sparse warning:

    drivers/infiniband/hw/ocrdma/ocrdma_hw.c:678:36: warning: Using plain integer as NULL pointer

There's no need to clear ib_evt, since every member is initialized.

Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/ocrdma/ocrdma_hw.c