]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6baff68f76df3c11d76b1c36b82cbf965d1ed827
tree6023a9296aae0c9bf3441c14bed6ffec0d9a7f67
parent9a8f541033480737d12e44f3b4a2e8d995995102
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