IB/rdmavt: restore IRQs on error path in rvt_create_ah()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 27 Apr 2017 09:14:20 +0000 (12:14 +0300)
committerDoug Ledford <dledford@redhat.com>
Fri, 28 Apr 2017 17:01:58 +0000 (13:01 -0400)
commitf0bb2d44ca26b7090dc7bade8877b77005f07dfc
tree16d5f8524aed9b90e6e2dec700def900b75bb38c
parenteea40b8f624f25cbc02d55f2d93203f60cee9341
IB/rdmavt: restore IRQs on error path in rvt_create_ah()

We need to call spin_unlock_irqrestore() instead of vanilla
spin_unlock() on this error path.

Fixes: 119a8e708d16 ("IB/rdmavt: Add AH to rdmavt")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Acked-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/sw/rdmavt/ah.c