RDMA/i40iw: Fix device initialization error path
authorMustafa Ismail <mustafa.ismail@intel.com>
Thu, 11 May 2017 04:32:14 +0000 (23:32 -0500)
committerDoug Ledford <dledford@redhat.com>
Thu, 1 Jun 2017 20:59:46 +0000 (16:59 -0400)
commitc0c643e16f9b00332cbbf3954556652dfa4ed5a3
tree6023a9296aae0c9bf3441c14bed6ffec0d9a7f67
parentb117f4796306a750ec1ffb928acc5f55bdb1fc7b
RDMA/i40iw: Fix device initialization error path

Some error paths in i40iw_initialize_dev are doing
additional and unnecessary work before exiting.
Correctly free resources allocated prior to error
and return with correct status code.

Signed-off-by: Mustafa Ismail <mustafa.ismail@intelcom>
Signed-off-by: Henry Orosco <henry.orosco@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/i40iw/i40iw_main.c