[Open-FCoE] [PATCH 1/3] libfc: fix lock imbalance in event handler

Robert Love robert.w.love at intel.com
Thu Oct 2 17:51:01 UTC 2008


This fixes an unlock without lock.

Signed-off-by: Robert Love <robert.w.love at intel.com>
---

 drivers/scsi/libfc/fc_lport.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/scsi/libfc/fc_lport.c b/drivers/scsi/libfc/fc_lport.c
index 1d39ef9..de55d0e 100644
--- a/drivers/scsi/libfc/fc_lport.c
+++ b/drivers/scsi/libfc/fc_lport.c
@@ -96,8 +96,8 @@ static void fc_lport_rport_event(struct fc_lport *lport, u32 port_id,
 		case LPORT_EV_RPORT_NONE:
 			break;
 		}
+		mutex_unlock(&lport->lp_mutex);
 	}
-	mutex_unlock(&lport->lp_mutex);
 }
 
 /**




More information about the devel mailing list