]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/ocrdma: Host crash on destroying device resources
authorMitesh Ahuja <mitesh.ahuja@emulex.com>
Thu, 18 Dec 2014 08:43:01 +0000 (14:13 +0530)
committerRoland Dreier <roland@purestorage.com>
Wed, 18 Feb 2015 16:31:03 +0000 (08:31 -0800)
commit038b00068c30ca1ef9ea27907013acc118d2daf1
tree98e96c07e34187d0fea09ceb62c7d95528563bcc
parente805d696379df167386ce279d29adec3d141bec3
RDMA/ocrdma: Host crash on destroying device resources

1. Cleanup sequence in ocrdma_remove(). The device should be
   unregistered from IB stack before any device specific cleanup.
2. Always return success in the resource destroy path. In case destroy
   command returns error, IB stack will trigger cleanup again while
   closing the uverbs device causing kernel panic BUG_ON().

Signed-off-by: Selvin Xavier <selvin.xavier@emulex.com>
Signed-off-by: Mitesh Ahuja <mitesh.ahuja@emulex.com>
Signed-off-by: Devesh Sharma <devesh.sharma@emulex.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/ocrdma/ocrdma_main.c
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c