All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rob Love <robert.w.love@intel.com>
To: linux-scsi@vger.kernel.org
Subject: [PATCH] [FCoE] Don't panic if session is null in fc_sess_seq_alloc(), just return null.
Date: Mon, 31 Dec 2007 10:19:48 -0800	[thread overview]
Message-ID: <20071231181948.28443.42615.stgit@fritz> (raw)

Signed-off-by: Rob Love <robert.w.love@intel.com>
---

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

diff --git a/drivers/scsi/ofc/libfc/fc_sess.c b/drivers/scsi/ofc/libfc/fc_sess.c
index 34cc2b0..8ac6811 100644
--- a/drivers/scsi/ofc/libfc/fc_sess.c
+++ b/drivers/scsi/ofc/libfc/fc_sess.c
@@ -665,6 +665,8 @@ struct fc_seq *fc_sess_seq_alloc(struct fc_sess *sess,
 	struct fc_exch *ep;
 	struct fc_local_port *lp;
 
+	if (!sess)
+		return NULL;
 	lp = sess->fs_local_port;
 	sp = fc_seq_start_exch(lp->fl_vf->vf_exch_mgr,
 			       recv, errh, arg, sess->fs_local_fid,


                 reply	other threads:[~2007-12-31 18:30 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20071231181948.28443.42615.stgit@fritz \
    --to=robert.w.love@intel.com \
    --cc=linux-scsi@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.