staging/rdma/hfi1: Destroy workqueues if hfi1_register_ib_device() call returns error
authorHarish Chegondi <harish.chegondi@intel.com>
Tue, 1 Dec 2015 20:38:20 +0000 (15:38 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 21 Dec 2015 21:51:55 +0000 (13:51 -0800)
commite8597eb01456f11f978f316c41ea54c935eb2f50
treeee07a43fc5748458eac35aad733bb2ebf34ca012
parent2c5b521ae688a6943d79e3f1210502084b375ced
staging/rdma/hfi1: Destroy workqueues if hfi1_register_ib_device() call returns error

Currently, if hfi1_register_ib_device() call is unsuccessful, workqueues
are not being destroyed before bailing out. This patch fixes this issue.

Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Harish Chegondi <harish.chegondi@intel.com>
Signed-off-by: Jubin John <jubin.john@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rdma/hfi1/init.c