]> git.baikalelectronics.ru Git - kernel.git/commit
IB/hfi1: Fix resource release in context allocation
authorJakub Pawlak <jakub.pawlak@intel.com>
Sun, 25 Sep 2016 14:42:23 +0000 (07:42 -0700)
committerDoug Ledford <dledford@redhat.com>
Sun, 2 Oct 2016 12:42:17 +0000 (08:42 -0400)
commit5d03689a6e4b763f4b95cc4f8f3bf5e4986f77c6
tree7efda22ab8e5ead4f40cefee67f2b0d58dfb92a0
parent0813229e1a62bec44ce87ed6f19e197d31eb44c6
IB/hfi1: Fix resource release in context allocation

Correct resource free in allocate_ctxt() function.
When context creation fails allocated resources are properly
released and pointer in receive context data table is set back
to NULL.

Reviewed-by: Dean Luick <dean.luick@intel.com>
Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Jakub Pawlak <jakub.pawlak@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hfi1/file_ops.c
drivers/infiniband/hw/hfi1/init.c