There is a typo cleaned, which triggers memory leakage.

Signed-off-by: Hillf Danton <[email protected]>
---

--- a/drivers/scsi/libfc/fc_exch.c      2010-09-13 07:07:38.000000000 +0800
+++ b/drivers/scsi/libfc/fc_exch.c      2010-10-23 15:00:08.000000000 +0800
@@ -3,6 +3,9 @@
  * Copyright(c) 2008 Red Hat, Inc.  All rights reserved.
  * Copyright(c) 2008 Mike Christie
  *
+ * Oct 23 2010         Hillf Danton
+ *                     minor fix of memory leakage
+ *
  * This program is free software; you can redistribute it and/or modify it
  * under the terms and conditions of the GNU General Public License,
  * version 2, as published by the Free Software Foundation.
@@ -1247,7 +1250,7 @@ static struct fc_seq *fc_seq_assign(stru

        list_for_each_entry(ema, &lport->ema_list, ema_list)
                if ((!ema->match || ema->match(fp)) &&
-                   fc_seq_lookup_recip(lport, ema->mp, fp) != FC_RJT_NONE)
+                   fc_seq_lookup_recip(lport, ema->mp, fp) == FC_RJT_NONE)
                        break;
        return fr_seq(fp);
 }
_______________________________________________
devel mailing list
[email protected]
http://www.open-fcoe.org/mailman/listinfo/devel

Reply via email to