From: Mike Christie <[EMAIL PROTECTED]>

fc_seq_exch_abort should return -EXXX like the other
functions.

Signed-off-by: Mike Christie <[EMAIL PROTECTED]>
---
 drivers/scsi/libfc/fc_exch.c |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/drivers/scsi/libfc/fc_exch.c b/drivers/scsi/libfc/fc_exch.c
index 8d0c713..6b4236e 100644
--- a/drivers/scsi/libfc/fc_exch.c
+++ b/drivers/scsi/libfc/fc_exch.c
@@ -355,7 +355,7 @@ int fc_seq_exch_abort(const struct fc_seq *req_sp)
        /*
         * Send the abort on a new sequence if possible.
         */
-       error = ENOMEM;
+       error = -ENOMEM;
        sp = fc_seq_start_next(&ep->seq);
        if (sp) {
                spin_lock_bh(&ep->ex_lock);
@@ -378,9 +378,8 @@ int fc_seq_exch_abort(const struct fc_seq *req_sp)
                if (fp) {
                        fc_frame_setup(fp, FC_RCTL_BA_ABTS, FC_TYPE_BLS);
                        error = fc_seq_send(ep->lp, sp, fp, FC_FC_END_SEQ);
-               } else {
-                       error = ENOBUFS;
-               }
+               } else
+                       error = -ENOBUFS;
        }
        return error;
 }
-- 
1.5.4.1

_______________________________________________
devel mailing list
[email protected]
http://www.open-fcoe.org/mailman/listinfo/devel

Reply via email to