Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cea9ea67 authored by Hoang-Nam Nguyen's avatar Hoang-Nam Nguyen Committed by Roland Dreier
Browse files

IB/ehca: Fix mismatched spin_unlock in irq handler



The lock is taken with _irqsave and hence must be released with
_irqrestore on all paths.

Signed-off-by Hoang-Nam Nguyen <hnguyen@de.ibm.com>
Signed-off-by: default avatarRoland Dreier <rolandd@cisco.com>
parent ce29d72c
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -440,7 +440,8 @@ void ehca_tasklet_eq(unsigned long data)
					cq = idr_find(&ehca_cq_idr, token);

					if (cq == NULL) {
						spin_unlock(&ehca_cq_idr_lock);
						spin_unlock_irqrestore(&ehca_cq_idr_lock,
								       flags);
						break;
					}