OSDN Git Service

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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 24 Mar 2018 10:00:18 +0000 (11:00 +0100)
commit566edbdefb71f4b4852aa3d8c55b79ebf3fc1f09
tree3b4f43b24c18ce09e6849de7abe1118e4d40cc15
parentb642685751f3b998721ea318792004d474fca5b0
IB/rdmavt: restore IRQs on error path in rvt_create_ah()

[ Upstream commit f0bb2d44ca26b7090dc7bade8877b77005f07dfc ]

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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/infiniband/sw/rdmavt/ah.c